-
Notifications
You must be signed in to change notification settings - Fork 287
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
Breakpoints unbound, VSCode cannot find source maps #1963
Comments
|
I just sent an email with the log files. |
This doesn't seem to be an issue in the debugger. You have scripts like "https://localhost:3000/v2/main.js", which has a source map URL "main.js.map". But when the debugger requests You may want to check that you don't have any other processes listening on port 3000 (e.g. one on ipv4 loopback and one on ipv6 loopback) as the debugger can try both depending on your local network configuration and it may not hit the desired one. |
Interesting, do you mind grabbing a log of that case so I can see what the difference is? |
Sure, just emailed you the log file. |
@connor4312 were you able to find anything in the log files that would help identify where the issue is occurring? |
I think that it only works because as a fallback we try to load the source from disk after appling path mappings (this is mostly used for Node.js) and when you change your |
@connor4312 do you have any suggestions on how to debug the sourcemap requests VSCode is making? I tried comparing with Chrome DevTools, but source maps load correctly in devtools and it appears to be making the same requests. If I open the link provided in the VS Code debug console (IE: https://localhost:3000/v2/main.js) I get the exepcted file with with |
I confirmed that if I use curl to make the request to I found this issue regarding source maps and authentication (microsoft/vscode#192895) which made me think if the browser authenticates then VSCode should be able to use the browser stack to get the sourcemaps. It looks like that change was made in 1.82 and I am using version 1.87.0. Are there any settings required to let VSCode know to use the browser's network stack or a way to force that? |
@connor4312 any suggestions on how to confirm that it is an issue with authentication and how to get VSCode to be able to access the source maps that the browser is able to load? |
I was also running into a similar issue and I found a workaround. I was using webpack and then forcing it to use inline source maps helped make it work. By making the source maps inline, the debugger didn't need to make additional requests for the source maps. However, this didn't end up being a viable long term solution for me as the files are massive. For now, I'm having to set breakpoints in the browser debugger. I am rather certain that the source map that vscode was getting back was an SSO login page. I was getting the exact error of |
Yes, I came to the same conclusion that it is due to the SSO login page. But there isn't any way to get around hitting the SSO and I wasn't able to get inline source maps to work. Unfortunately, without this working I am also stuck using the browser debugger. @connor4312 is it a known issue that Source Map Request Authentication does not work with SSO? Is this something that can be added? |
I am unable to get breakpoints working in VSCode when debugging a typescript, angular application. When I look at Debug Diagnostics, it does not find any source location, even though
"sourceMap": true
is set in the tsconfig.tsconfig.json
launch.json
Errors in Debug Console:
Sources tab in Chrome Dev Tools:
If I set the breakpoint in Chrome Dev Tools or use the
debugger
statement in the typescript file, I am able to hit the breakpoint without an issue. How do I get the breakpoints to bind in the VSCode debugger?The text was updated successfully, but these errors were encountered: