Created
December 25, 2019 00:40
-
-
Save bcnzer/cb05d6bb088760811f366d54cbd8f7f4 to your computer and use it in GitHub Desktop.
VS Code launch.json to enable debugging of Nuxt.js apps. Note a further change is required in your nuxt.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "chrome", | |
"request": "launch", | |
"name": "client: chrome", | |
"url": "http://localhost:3000", | |
"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
From :
https://nuxt.com/docs/guide/going-further/debugging