-
Notifications
You must be signed in to change notification settings - Fork 29
I can't add breakpoint when debug #4
Comments
If chrome starts when you hit F5 to debug and there is no chrome user directory in .vscode this could be a user rights issue. do you get any errors in the debugger console? You can activate |
sorry, I found user directory existed in .vscode, but be excluded in setting.json. |
Ok, that is intended because the size of this directory would slow vscode down. Let me know if you find anything helpful in chrome debugger diagnostic log. |
the log is too long for copy and paste, and no error occurred, will these two be helpful?
|
You could attach the file by dragging it into your comment. |
when I set breakpoint, I got log like this:
|
This is strange. I have set a breakpoint to the same line and it got hit. The log looks like this:
you can see in the last line that it maps to |
Hello skolmer, i cloned the projekt this morning and have the same problems like sirqiao. Chrome opens fine. But no breakpoints. I run Visual Studio Code on Windows. Log shows also:
Thanks for help |
That's interesting I'm on windows too and it's working. |
vscode: 1.4.0 Should i update vscode? |
I checked with vscode 1.4.0 and can't reproduce the error. |
@sirqiao @VolkerFried I have just realized that chrome debugger is warning about inline sourcemaps. The debug output will look like this
Please let me know if this works for you. |
I' m finding this lines in the log:
I'm missing this Line:
Any Ideas? Thanks for your help |
I set "devtool" to "#cheap-eval-source-map", and it work for me on my surface pro 4 |
@VolkerFried It looks like your dev server is still running with the old configuration. Please try to terminate the task via vscode or try to cancel the node process via task manager and restart the debugger/devserver |
@sirqiao does "#cheap-module-source-map" work on your mac? |
My mac isn't with me, I will try it tomorrow, and give the result. |
"#cheap-module-source-map" doesn't work on my mac either. But "#cheap-eval-source-map" work well. |
Thanks for testing! I will try to get some help from the vscode-chrome-debug team to investigate this issue |
@skolmer Stopping the old Task and set devtool to "#cheap-eval-source-map" in webpack.config.dev.js worked also fine for me:) Thanks for your fast help |
I will keep this open until it's clear what is causing this issue |
After a fresh clone of the project I was able to reproduce the error with |
I cloned the project, and didn't change any code. When I debug in my vscode on mac, it works(open a new chrome window and can be interrupted) but I can't add breakpoint to it and it doesn't generate the ".vscode/chrome" folder. how could I solve the problem?
The text was updated successfully, but these errors were encountered: