VS Code launch.json example
kdeng opened this issue · comments
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Debug Client",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}",
"sourceMapPathOverrides": {
"webpack:///./": "${webRoot}/",
"webpack:///src/": "${webRoot}/src/"
},
"breakOnLoad": false
},
{
"type": "node",
"request": "launch",
"name": "Debug Server",
"cwd": "${workspaceFolder}",
"env": {
"NODE_ENV": "development",
"APP_MODERN_OFF": "true"
},
"runtimeExecutable": "npx",
"program": "${workspaceFolder}/server/index.js",
"runtimeArgs": [
"nodemon",
"--inspect",
"--watch",
"${workspaceFolder}/server",
"--watch",
"${workspaceFolder}/nuxt.config.js",
"--watch",
"${workspaceFolder}/.env"
],
"stopOnEntry": false,
"restart": true,
"sourceMaps": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Debug Server - SPA",
"cwd": "${workspaceFolder}",
"env": {
"NODE_ENV": "development"
},
"runtimeExecutable": "npx",
"program": "${workspaceFolder}/server/index.js",
"runtimeArgs": [
"nodemon",
"--inspect",
"--watch",
"${workspaceFolder}/server",
"--watch",
"${workspaceFolder}/nuxt.config.js",
"--watch",
"${workspaceFolder}/.env"
],
"stopOnEntry": false,
"restart": true,
"sourceMaps": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Debug Build",
"cwd": "${workspaceFolder}",
"env": {
"NODE_ENV": "production"
},
"runtimeExecutable": "node",
"program": "${workspaceFolder}/node_modules/.bin/nuxt",
"runtimeArgs": ["--inspect"],
"args": ["build", "--releaseVersion", "0.0.0"],
"stopOnEntry": false,
"restart": true,
"sourceMaps": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
},
{
"type": "node",
"request": "launch",
"name": "Debug Build - SPA",
"cwd": "${workspaceFolder}",
"env": {
"NODE_ENV": "production"
},
"runtimeExecutable": "node",
"program": "${workspaceFolder}/node_modules/.bin/nuxt",
"runtimeArgs": ["--inspect"],
"args": ["build", "--spa", "--releaseVersion", "0.0.0"],
"stopOnEntry": false,
"restart": true,
"sourceMaps": true,
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen"
}
]
}