Skip to content

Instantly share code, notes, and snippets.

@souljorje
Created September 12, 2018 10:10
Show Gist options
  • Save souljorje/82bf16bea6bf60c210f2cea9435915ac to your computer and use it in GitHub Desktop.
Save souljorje/82bf16bea6bf60c210f2cea9435915ac to your computer and use it in GitHub Desktop.
Config for vscode chrome debugger for Vue and Nuxt apps
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "vue: chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}/*",
"breakOnLoad": true,
"sourceMaps": true,
"sourceMapPathOverrides": {
"webpack:///@": "${webRoot}/*",
"webpack:///@@": "${webRoot}/*",
"webpack:///~": "${webRoot}/*",
"webpack:///~~": "${webRoot}/*",
}
},
{
"name": "nuxt: chrome",
"type": "node",
"request": "launch",
"protocol": "inspector",
"program": "${workspaceRoot}/node_modules/nuxt/bin/nuxt",
"stopOnEntry": false,
"args": ["dev"],
"cwd": "${workspaceRoot}",
"sourceMaps": true,
"env": {
"NODE_ENV": "development",
"DEBUG": "nuxt:*,app"
}
},
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment