57 lines
1.5 KiB
JSON
57 lines
1.5 KiB
JSON
{
|
|
"version": "0.3.0",
|
|
"configurations": [
|
|
{
|
|
"command": "yarn redwood dev --apiDebugPort 18911", // you can add --fwd='--open=false' to prevent the browser from opening
|
|
"name": "Run Dev Server",
|
|
"request": "launch",
|
|
"type": "node-terminal"
|
|
},
|
|
{
|
|
"name": "Attach API debugger",
|
|
"port": 18911, // you can change this port, see https://redwoodjs.com/docs/project-configuration-dev-test-build#debugger-configuration
|
|
"request": "attach",
|
|
"skipFiles": [
|
|
"<node_internals>/**"
|
|
],
|
|
"type": "node",
|
|
"localRoot": "${workspaceFolder}/node_modules/@redwoodjs/api-server/dist",
|
|
"remoteRoot": "${workspaceFolder}/node_modules/@redwoodjs/api-server/dist",
|
|
"sourceMaps": true,
|
|
"restart": true,
|
|
"preLaunchTask": "WaitForDevServer",
|
|
},
|
|
{
|
|
"name": "Launch Web debugger",
|
|
"type": "chrome",
|
|
"request": "launch",
|
|
"url": "http://localhost:8910",
|
|
"webRoot": "${workspaceRoot}/web/src",
|
|
"preLaunchTask": "WaitForDevServer",
|
|
},
|
|
{
|
|
"command": "yarn redwood test api",
|
|
"name": "Test api",
|
|
"request": "launch",
|
|
"type": "node-terminal"
|
|
},
|
|
{
|
|
"command": "yarn redwood test web",
|
|
"name": "Test web",
|
|
"request": "launch",
|
|
"type": "node-terminal"
|
|
},
|
|
],
|
|
"compounds": [
|
|
{
|
|
"name": "Start Debug",
|
|
"configurations": [
|
|
"Run Dev Server",
|
|
"Attach API debugger",
|
|
"Launch Web debugger"
|
|
],
|
|
"stopAll": true
|
|
}
|
|
]
|
|
}
|