-
Notifications
You must be signed in to change notification settings - Fork 119
Breakpoints not firing due to path mismatch #385
Comments
Thanks for the PR, I'm not sure whether that's right or not either. Can you tell me more about what the problem actually is? A reproducible case, or set |
I'll upload a trace file later (that's actually how I debugged this issue). The issue for me, is that without this change, breakpoints won't stop in my typescript files. If I add the |
I'm attaching my debugadapter.txt. debugadapter.txt A snippet of interest:
As you can see the file |
I see it, thanks! |
Note to self, this is the case when the script is not resolved to a path on disk. Even though that .js doesn't exist at that location, if it's a file URI, we should still attempt to use that info to resolve paths in the sourcemap. |
Currently I have an issue (since Node 10.12, which seems to be a change in node regarding file urls and source maps).
It appears that the function
SourceMapUtils.getComputedSourceRoot
is failing to produce a valid root, and so the files are all being listed as relative to the application root. This results in none of the source maps being found, and breakpoints being missed.Defaulting the computed source root to the generated file's directory seems to solve this, but I have a feeling this isn't the right fix for the issue.
A few related issues:
microsoft/vscode#61711
nodejs/node#23693
The text was updated successfully, but these errors were encountered: