Skip to content

Instantly share code, notes, and snippets.

@bcnzer
Created December 25, 2019 09:03
Show Gist options
  • Save bcnzer/7b0264b523d18a64f60d07fff87fb982 to your computer and use it in GitHub Desktop.
Save bcnzer/7b0264b523d18a64f60d07fff87fb982 to your computer and use it in GitHub Desktop.
VS Code debug config in which we are attaching to the Chrome instance. Note that you must launch Chrome with the remote debugging port i.e. chrome.exe --remove-debugging-port=9222
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "attach",
"name": "attach to Chrome",
"port": 9222,
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"webpack:///*": "${workspaceRoot}/*"
}
},
{
"type": "node",
"request": "launch",
"name": "server: nuxt",
"args": ["dev"],
"osx": {
"program": "${workspaceFolder}/node_modules/.bin/nuxt"
},
"linux": {
"program": "${workspaceFolder}/node_modules/.bin/nuxt"
},
"windows": {
"program": "${workspaceFolder}/node_modules/nuxt/bin/nuxt.js"
}
}
],
"compounds": [
{
"name": "fullstack: nuxt",
"configurations": ["server: nuxt", "client: chrome"]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment