Skip to content

Instantly share code, notes, and snippets.

@socheatsok78
Last active November 4, 2021 05:25
Show Gist options
  • Save socheatsok78/eb77e2159de12c8d511c1820ae5fc177 to your computer and use it in GitHub Desktop.
Save socheatsok78/eb77e2159de12c8d511c1820ae5fc177 to your computer and use it in GitHub Desktop.
Vue.js Debugging in VS Code Extended
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Edge",
"request": "launch",
"type": "pwa-msedge",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/src",
"sourceMapPathOverrides": {
"webpack:///./~/*": "${workspaceFolder}/node_modules/*",
"webpack://?:*/*": "${workspaceFolder}/*"
},
"preLaunchTask": "npm: serve"
},
{
"name": "Launch Chrome",
"request": "launch",
"type": "chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/src",
"sourceMapPathOverrides": {
"webpack:///./~/*": "${workspaceFolder}/node_modules/*",
"webpack://?:*/*": "${workspaceFolder}/*"
},
"preLaunchTask": "npm: serve"
},
{
"type": "firefox",
"request": "launch",
"reAttach": true,
"name": "Launch Firefox",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/src",
"pathMappings": [
{ "url": "webpack:///src/", "path": "${webRoot}/" }
],
"preLaunchTask": "npm: serve"
},
]
}
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "serve",
"label": "npm: serve",
"detail": "vue-cli-service serve",
"isBackground": true,
"problemMatcher": {
"owner": "vue-cli",
"fileLocation": "absolute",
"source": "vue-cli-service",
"background": {
"activeOnStart": true,
"beginsPattern": "INFO\\s+Starting development server",
"endsPattern": " DONE\\s+Compiled successfully.*$"
},
"pattern": [
{
"regexp": "^(error|warning) in (.*)\\(.*$",
"severity": 1,
"file": 2
},
{
"regexp": "^([0-9]+):([0-9]+) ([\\s\\S]*)$",
"line": 1,
"column": 2,
"message": 3
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment