You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The build target must be launched independently from the VS Code debugger. That is, first the user runs bazel run --config=debug //:foo; then, the user runs launches the "Attach nodejs_binary" configuration.
Due to 2, when the user wants to rerun a program, it takes 30s or so. With typical VS Code debugging, the "Debug: Restart" command can be used (a single button click).
The debugger doesn't recognize breakpoints set in the original source files, and the copies of these source files in bazel-bin are used instead.
Describe the feature
VS Code debugging of bazel targets should be approximately as easy as debugging normal TypeScript/JavaScript projects. I want to specify either a test or binary target, hit the debug button, and debug as usual.
Implementation notes
Perhaps source maps should be emitted when source files are copied to the output, or symlinks to the source directory should be used instead (if supported) when using the debug bazel config.
What is the current behavior?
https://github.com/aspect-build/rules_js/blob/main/docs/README.md#debugging describes how to use VS step-through debuggers with rules_js.
There are a few annoying aspects:
bazel run --config=debug //:foo
; then, the user runs launches the "Attach nodejs_binary" configuration.Describe the feature
VS Code debugging of bazel targets should be approximately as easy as debugging normal TypeScript/JavaScript projects. I want to specify either a test or binary target, hit the debug button, and debug as usual.
Implementation notes
Perhaps source maps should be emitted when source files are copied to the output, or symlinks to the source directory should be used instead (if supported) when using the debug bazel config.
Documentation on how VS Code's debugger uses source maps:
https://code.visualstudio.com/docs/nodejs/nodejs-debugging#_source-map-discovery
Fund our work
The text was updated successfully, but these errors were encountered: