Skip to content

debugging-in-vscode config not working for me #2617

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

Closed
martixy opened this issue Jun 5, 2020 · 1 comment
Closed

debugging-in-vscode config not working for me #2617

martixy opened this issue Jun 5, 2020 · 1 comment

Comments

@martixy
Copy link

martixy commented Jun 5, 2020

https://github.com/vuejs/vuejs.org/blob/master/src/v2/cookbook/debugging-in-vscode.md

The config here is not working for me.

The actual mapped files end up being <projectDir>\src\js\webpack:\src\<pathToFile>.
(The first src there comes from the webroot setting.)

I am on a vue-cli project, compiling from the gui.

My env is:
vscode v1.45.1
[email protected]
@vue/[email protected]
node v13.8.0
[email protected]

The config that worked for me is:

{
    "webRoot": "${workspaceFolder}/",
    "sourceMapPathOverrides": {
        "webpack:///./*": "${webRoot}/*"
    }
}

I could have sworn the config from the docs worked a few weeks ago. But now I can replicate the problem(and above solution) across a number of projects.

I'm not sure if this is something isolated to my environment or a proper bug/bad docs...

@eloekset
Copy link

eloekset commented Feb 8, 2022

Are you sure the documentation about launch.json in VSCode is still valid?

   {
      "type": "chrome",
      "request": "launch",
      "name": "vuejs: chrome",
      "url": "http://localhost:8080",
      "webRoot": "${workspaceFolder}/src",
      "breakOnLoad": true,
      "sourceMapPathOverrides": {
        "webpack:///src/*": "${webRoot}/*"
      }
    },

image
image
image
image

@martixy martixy closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants