Home

Awesome

Experimental debugger for Starlark

This is a standalone debugger for Starlark ,with a web-based UI. In theory, it can be used to debug any Starlark code that uses the same debugging protocol. At the moment, the only known compatible server is Bazel.

This is the first draft, there are lots of rough edges and known limitations.

Screenshot

Example of use

  1. Run your normal Bazel command with --experimental_skylark_debug, e.g.
bazel build --experimental_skylark_debug //my:target

The command will hang until a debugger is attached.

  1. In a different shell, run the debugger from the stardbg repository. Choose where you want your initial breakpoints using an absolute path and a line number, e.g.
bazel run :stardbg -- /home/myself/dir/my/BUILD.bazel:3

Of course, the file should be inside the repository you are debugging (a file used by //my:target).

  1. Open a browser at http://localhost:8080/

Caveats

Alternative