From c57061115c8b205b35610c2b93f3a5b834d88518 Mon Sep 17 00:00:00 2001 From: Joao Moreno Date: Mon, 24 Oct 2016 10:00:30 +0200 Subject: [PATCH] allow debugging cli process --- .vscode/launch.json | 12 +++++++++--- scripts/code-cli.sh | 2 +- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 3cd5834e368..a38eab5fd9c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -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" diff --git a/scripts/code-cli.sh b/scripts/code-cli.sh index 9a4c03e31d4..f9a6d337be9 100755 --- a/scripts/code-cli.sh +++ b/scripts/code-cli.sh @@ -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 "$@" -- GitLab