-
Notifications
You must be signed in to change notification settings - Fork 522
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging node process started by Bazel from VSCode #823
Comments
The cause of this issue is this here: bazelbuild/rules_typescript#254 Otherwise if you have ts_library
jasmine_node_testAlso another issue that I havn't documented is when you try debugging a source file from under Proposed SolutionThe solution I propose to solve this is that we modify the source maps from |
One downside I see to this approach is that solving this problem with the ts plugin/transformer approach means it only solves it for files compiled under i've also started on trying this approach here: https://github.com/bazelbuild/rules_nodejs/pull/722/files |
Ok after some more investigation the above solution is not a great solution. Here's some better context around the issues here: https://groups.google.com/forum/#!searchin/bazel-discuss/sourcemap$20paths%7Csort:date/bazel-discuss/nv6B0JI9FpI/F91QTAoRAQAJ |
So we came up with a pretty hacky way to work around this problem in our repository for now. The main changes here is that we are passing in a environment variable to tsc_wrapped which allows us to set the sourceRoot for the source maps to an absolute path. below are the specific changes needed to do this
BUILD.bazel
defaults.bzl
scripts/debug
.gitignore
.bazelrc
|
@alexeagle |
We have a method to solve this now, see the discussion here: microsoft/vscode-chrome-debug-core#549
|
I don't know if this is a real issue, just copying it from the JIRA board.
Not sure how to reproduce. Maybe @vikerman or @Toxicable knows.
The text was updated successfully, but these errors were encountered: