mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
allow debugging cli process
This commit is contained in:
parent
54c2b18e75
commit
c57061115c
12
.vscode/launch.json
vendored
12
.vscode/launch.json
vendored
|
@ -36,6 +36,14 @@
|
|||
"sourceMaps": true,
|
||||
"outDir": "${workspaceRoot}/out"
|
||||
},
|
||||
{
|
||||
"name": "Attach to CLI Process",
|
||||
"type": "node",
|
||||
"request": "attach",
|
||||
"port": 5874,
|
||||
"sourceMaps": true,
|
||||
"outDir": "${workspaceRoot}/out"
|
||||
},
|
||||
{
|
||||
"name": "VSCode API Tests",
|
||||
"type": "extensionHost",
|
||||
|
@ -92,11 +100,9 @@
|
|||
"request": "launch",
|
||||
"program": "${workspaceRoot}/build/lib/monaco.js",
|
||||
"stopOnEntry": false,
|
||||
"args": [
|
||||
],
|
||||
"args": [],
|
||||
"cwd": "${workspaceRoot}/build/lib"
|
||||
// ,
|
||||
|
||||
// "port": 5870,
|
||||
// "sourceMaps": true,
|
||||
// "outDir": "${workspaceRoot}/out"
|
||||
|
|
|
@ -35,7 +35,7 @@ function code() {
|
|||
VSCODE_DEV=1 \
|
||||
ELECTRON_ENABLE_LOGGING=1 \
|
||||
ELECTRON_ENABLE_STACK_DUMPING=1 \
|
||||
"$ELECTRON" "$CLI" . "$@"
|
||||
"$ELECTRON" --debug=5874 "$CLI" . "$@"
|
||||
}
|
||||
|
||||
code "$@"
|
||||
|
|
Loading…
Reference in a new issue