-
Notifications
You must be signed in to change notification settings - Fork 119
sourceMapPathOverrides matching doesn't work when sourceRoot does not end in / #78
Comments
That looks correct to me. Have you looked at the logs from the diagnosticLogging option? If not, can you set that and check whether it comes up? If you upload the log file from ~/.vscode/extensions/msjsdiag.debugger-for-chrome/vscode-chrome-debug.txt, I can take a look. |
Yes, I have already activated You can see the vscode-chrome-debug.txt here: I try to focus on login.ts for now as it is the simplest one. Most interesting should be lines 635 - 643. |
Additional note: My dev web server root is When setting it like this the source map to looked up correctly: But according to documentation
|
I think your sourceRoot should be |
You mean I have tried
The breakpoint works. This way I can leave the But I am curious, why did it not match with one slash less? There was nothing like |
I'm basically doing path.join is probably the way to go, I guess. Does it work in Chrome? |
I would also think I got my sample from the Aurelia skeleton but if you take a short look at the gulp-sourcemaps documentation at sourceRoot none of the examples mention a trailing slash. I will continue to work with the trailing slash injected into my source maps' sourceRoot until this is fixed. |
Having hell of a time matching typescript maps in an electron app. I got
in my I tried adding a wildcard on either side of the override with the same results. Any ideas? EDIT: just in case it's not clear, src dir is |
This looks related: https://github.com/Microsoft/vscode-chrome-debug/issues/85 App loads from a file://url but source maps are loaded from the browser (electron) |
You would likely need
Use the |
Thanks for the tip, I needed
|
According to the readme
sourceMapPathOverrides
matchessourceRoot
plussources
.I got a
login.js.map
for alogin.ts
which hassourceRoot: '/src'
andsources: ['login.ts']
. So the source-file should be/src/login.ts
.But the following entry for
sourceMapPathOverrides
is not used:"/src/*": "${workspaceRoot}/src/*"
Note: Workspace root
src
is not a subfolder ofwebRoot
.The text was updated successfully, but these errors were encountered: