Skip to content
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

I Can't Debug vue.js When "preLaunchTask" is added in launch.json #320

Open
Michaelzhouisnotwhite opened this issue Apr 13, 2022 · 0 comments

Comments

@Michaelzhouisnotwhite
Copy link

My task.json is as follows:

{
  "version": "2.0.0",
  "tasks": [
    {
      "label": "npm run serve",
      "type": "npm",
      "script": "serve",
      "isBackground": true,
      "problemMatcher": [
        {
          "base": "$tsc-watch",
          "background": {
            "activeOnStart": true,
            "beginsPattern": "Starting development server",
            "endsPattern": "Compiled successfully"
          }
        }
      ],
      "group": {
        "kind": "build",
        "isDefault": true
      }
    }
  ]
}

My launch.json is as follows


  "version": "0.2.0",
  "configurations": [
    {
      "type": "pwa-msedge",
      "request": "launch",
      "name": "vuejs: edge",
      "url": "http://localhost:8081",
      "webRoot": "${workspaceFolder}/src",
      "breakOnLoad": true,
      "sourceMapPathOverrides": {
        "webpack:///src/*": "${webRoot}/*"
      },
      // "preLaunchTask": "npm run serve"
    },
  ]
}

When I uncomment the "preLaunchTask" value, the debugger can't start. After I remove it , it works well. I guess may be a bug happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant