Can't debug in vue-cli 3.0x/4.x webpack app
See original GitHub issueThe below configurations works well with debugger for chrome, but not works with debugger for firefox.
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "vuejs: chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/src",
"breakOnLoad": true,
"sourceMapPathOverrides": {
"webpack:///./src/*": "${webRoot}/*"
}
},
{
"type": "firefox",
"request": "launch",
"name": "vuejs: firefox",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/src",
"pathMappings": [{ "url": "webpack:///src/", "path": "${webRoot}/" }]
}
]
}
https://github.com/vuejs/cn.vuejs.org/issues/1026
vue-cli : 4.0.4 vue : 2.6.10 language: typescript
firefox: 69.0.3
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Debugging in VS Code and Chrome not working with TypeScript
I am using @vue/cli version 4.2.3 and breakpoints do not work in JetBrains IDE's when using TS + Vue SFC's. We just want...
Read more >vscode debug vue-cli app cant set breakpoints in vscode
I use the Chrome Debugger (even though it's deprecated, ... you also set the mainFields (see docs) property defined in webpack.config.js.
Read more >Debugging doesn't work for Vue+typescript when ... - YouTrack
debugging doesn't work in VSCode as well; @vue/cli 3.0.0 generates sourcemaps with URLs like "webpack:///./src/components/HelloWorld.vue.ts" for Vue ...
Read more >3 Ways To Debug Your Vuejs Apps With VS Code And Chrome
There is a lot of neat ways to debug your Vue.js apps using VS Code. In this video I'll explore different ways to...
Read more >How I solved and debugged my Webpack issue through trial ...
When webpack bundles your source code, it can become difficult to track down errors and warnings to their original location.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hbenl find the issue, now it works(need fresh page once more #92).
Thanks for the screenshot, that allowed me to reproduce the issue. I am currently rewriting the sourcemapping code in the extension (mostly to improve performance and support the new UI for column breakpoints). It will become more similar to how Firefox’ built-in debugger handles sourcemaps and since that works with this example, the rewrite should fix the issue.