-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
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 not working properly with devtool strategy in the Quasar document on fresh new project #9614
Comments
I have managed to fix this by changing
I have not thoroughly tested it yet but it seems to be working. Reference: https://stackoverflow.com/questions/52648552/debugger-settings-for-chrome-in-vs-code-with-vue-js I am not closing this issue since I believe the Quasar document should be changed to reflect receent changes in VS Code or Webpack (not sure when and where this breaking change was introduced). |
Having the same issue: Can't set breakpoints in Vue files in VSCode on Win10.
Finally got it to work using:
Where junk2 is the project root directory Beat. Further update...
|
For the life of me, I swear I have tried every combination of 'sourceMapPathOverrides' people have suggested and I just cant get it to hit my breakpoints. |
@jaybo Thanks. I ended up with this.
The first line gets most of the project source files. |
This is crazy... Thanks @jaybo & @exemplari your config helps me a bit, but I still got really weird issues... Step 1/ Create new quasar project Step 2/ Update launch.json config with this one: {
"type": "chrome",
"request": "launch",
"name": "Quasar App: chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/src",
"breakOnLoad": true,
"sourceMapPathOverrides": {
"webpack://${workspaceFolderBasename}/./src/*": "${webRoot}/*"
}
} => Now breakpoint does work on this new project BUT Step 3/ If I copy this project into a new folder, What is going on with VSCode here ? oO |
@xavier-rodet and anyone lost in debug strangeness. Using VS-Code nightly debugger (ms-vscode.js-debug-nightly) and the webpack 5 style sourceMap is the solution. However, windows 10 is the underlying problem. There is an issue with Windows 10 / WSL2 and reserved ports , since around version 2004 . I haven't seen any real explanation of this but here is an example microsoft/WSL#5306 For me this results in trying to launch the debugger and it sometimes working, sometimes not, depending on the randomly assigned ports used for connecting vscode to the browser. Testing this on windows 8 machine and the debugger never miss. |
Same issue bothers me a lot, is there any solution update? |
I found that debugger works on .js files, but not on .vue. I use pug for templates. If I use standard html then breakpoints works ok. What it can be? My configuration:
build section from quasar.conf.js
|
I am moving this to Discussions as this is not a Quasar issue. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Probably related issue: #8235 . This is not a duplicate. It may or may not be a document issue. I am unable to determine the reason.
In the quasar document https://quasar.dev/start/vs-code-configuration the devtool strategy
devtool: 'source-map'
prevents breakpoints to work properly in VS Code with Chrome. I've successfully reproduced this bug in a fresh new quasar project.By simply removing this line I am able to properly debug in Chrome, and it pauses properly at the breakpoint.
To reproduce
quasar create
, enter anythingdevtool: 'source-map'
to thebuild
sectionquasar dev
launch.json
according to the document at https://quasar.dev/start/vs-code-configurationExpected behavior
The breakpoint should work for VS Code with Chrome. And it should only break when it runs the given line.
Index.vue
Just some copy-and-paste from QButton document.
quasar.conf not working properly (all lines are auto generated except the devtool config)
Versions
OS: Windows
Node: 14
Browser: Chrome 91.0.4472.77
Pkg quasar: v1.15.20
Pkg @quasar/app: v2.2.9
Dev mode: spa
VS Code: 1.56.2
VS Code Extension:
Debugger for Chrome
: v4.12.12package.json auto generated by quasar cli
The text was updated successfully, but these errors were encountered: