-
-
Notifications
You must be signed in to change notification settings - Fork 133
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
Source maps broken after moving from 0.23.0 to 0.26.1 #539
Comments
please fix this issue, it is critical problem |
@k2s are you also debugging from visual code or are you having issues in chrome for example? |
I have not been able to figure out how do configure VS Code debugger. I am using the latest CLI with typescript. Does anyone have a launch.json example on how this should look? Bryan |
If you make these changes it will fix the issue. However, I did encounter what looks to be an issue in VSCode: microsoft/vscode#22711 |
I'm submitting a bug report
0.26.1
Please tell us about your environment:
Operating System:
Windows 7
Node Version:
6.9.1
NPM Version:
3.10.9
Language:
Typescript 2.1.6
Previous behavior
In 0.23.0, sources (files in src dir) were correctly loaded both when using Chrome's debugger and when using VSCode with the chrome debugger extension.
Current behavior:
In 0.26.1, sources are not correctly loaded when debugging - Chrome shows my sources as empty and vscode doesn't let me put breakpoints in them.
Cause
It looks like the source map files generated by 0.26.1 have a sourceRoot of ".." while those of 0.23.0 have a sourceRoot of "../src"
Since the generated scripts sit in "./scripts" and the sources in "./src", it makes sense to me that "../src" (the old value) would work while ".." (the new value) wouldn't.
I've checked an auto-generated 0.26.1 aurelia-cli app and it seems to have the same problem, except it embeds the sources into the source maps which makes Chrome show them anyway - but vscode breakpoints still don't work since it still can't find the sources (and having the sources embedded in the source map doesn't help with that).
The text was updated successfully, but these errors were encountered: