allow debugging cli process

This commit is contained in:
Joao Moreno 2016-10-24 10:00:30 +02:00
parent 54c2b18e75
commit c57061115c
2 changed files with 10 additions and 4 deletions

12
.vscode/launch.json vendored
View file

@ -36,6 +36,14 @@
"sourceMaps": true, "sourceMaps": true,
"outDir": "${workspaceRoot}/out" "outDir": "${workspaceRoot}/out"
}, },
{
"name": "Attach to CLI Process",
"type": "node",
"request": "attach",
"port": 5874,
"sourceMaps": true,
"outDir": "${workspaceRoot}/out"
},
{ {
"name": "VSCode API Tests", "name": "VSCode API Tests",
"type": "extensionHost", "type": "extensionHost",
@ -92,11 +100,9 @@
"request": "launch", "request": "launch",
"program": "${workspaceRoot}/build/lib/monaco.js", "program": "${workspaceRoot}/build/lib/monaco.js",
"stopOnEntry": false, "stopOnEntry": false,
"args": [ "args": [],
],
"cwd": "${workspaceRoot}/build/lib" "cwd": "${workspaceRoot}/build/lib"
// , // ,
// "port": 5870, // "port": 5870,
// "sourceMaps": true, // "sourceMaps": true,
// "outDir": "${workspaceRoot}/out" // "outDir": "${workspaceRoot}/out"

View file

@ -35,7 +35,7 @@ function code() {
VSCODE_DEV=1 \ VSCODE_DEV=1 \
ELECTRON_ENABLE_LOGGING=1 \ ELECTRON_ENABLE_LOGGING=1 \
ELECTRON_ENABLE_STACK_DUMPING=1 \ ELECTRON_ENABLE_STACK_DUMPING=1 \
"$ELECTRON" "$CLI" . "$@" "$ELECTRON" --debug=5874 "$CLI" . "$@"
} }
code "$@" code "$@"