question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't debug in vue-cli 3.0x/4.x webpack app

See original GitHub issue

The 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:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Akimotorakiyucommented, Dec 15, 2019

@hbenl find the issue, now it works(need fresh page once more #92).

1reaction
hbenlcommented, Oct 28, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found