-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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 doesn't work in vscode debugger #2734
Comments
I can not make breakpoints working in Vscode and WebStorm. I followed #2341 It stops in first line but not hit breakpoints. So as above indicated, it's a bug I think. Hope we can have a solution soon. |
@ralphchristianeclipse @tim-yao any news on this one? |
Hi @sobolevn I have made it working, looks not a issue anymore. Here is my VSCODE debug config for my Nuxt project:
Use |
@tim-yao debug app actually starts, but I am facing this problem: Could you please provide a reproduction repo? That's the setup I am using: https://github.com/wemake-services/wemake-vue-template {
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "My Nuxt project",
"protocol": "inspector",
"program": "${workspaceRoot}/node_modules/.bin/nuxt",
"stopOnEntry": true,
"args": ["dev"],
"cwd": "${workspaceRoot}",
"sourceMaps": true,
"env": {
"NODE_ENV": "development",
"DEBUG": "nuxt:*,app,client"
}
}
],
"compounds": []
}
|
Hi @sobolevn yes, just noticed I still have the same issue as you. However, I can use Mostly it is a source maps issue still need some one to find a solution. Not sure how to make it.
|
I verify that |
This issue should be relate to vuejs/vue-loader#1163, as the comments said, you may try to upgrade |
I am already using the latest
I will try to update to |
Any luck? |
@sobolevn @jdamboeck It seems that vue-loader issue is still not solved, let's keep tracking it. And you can also take a look at: webpack/webpack#7199 (comment). If it's confirmed to be a proper fix for css sourcemap, I'll change the Nuxt cssSourceMap behaviour. |
New to nuxt and I am facing the same debugging issue. After setting the webpack devtool for the server to "inline-source-map" as I set in Vue projects, breakpoints now get hit. In my nuxt.config.js, I have: if (isClient)
config.devtool = 'eval-source-map'
else
config.devtool = "inline-source-map" in the build configuration. Just refer to the documentation and make the modification. I am using the vs code debug configuration provided by @tim-yao . Now server side code can be debugged in vs code and client side code can be debugged in Chrome. It will be perfect if all the code can be debugged right in vs code. Any solution? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I'm using this command to debug nuxt server store
and in vs code
i'll attach it when it runs
seems breakpoints doesn't work and grayed out turned sourceMaps on too
The text was updated successfully, but these errors were encountered: