Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/vscode.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorConnor Peet <connor@peet.io>2020-11-03 02:15:14 +0300
committerConnor Peet <connor@peet.io>2020-11-03 02:15:14 +0300
commit296aa890126bd248a7ab16bced8599b27c35f466 (patch)
tree46fde3f56c70c6f51800e379039815545d7e2773 /.vscode/launch.json
parent6acc9ff1eeb155b66d0a1548c2eba395846b0802 (diff)
debug: improve attach to vscode config
Diffstat (limited to '.vscode/launch.json')
-rw-r--r--.vscode/launch.json51
1 files changed, 49 insertions, 2 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 6153d7a995c..646b99c7943 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -200,7 +200,8 @@
"request": "attach",
"name": "Attach to VS Code",
"browserAttachLocation": "workspace",
- "port": 9222
+ "port": 9222,
+ "perScriptSourcemaps": "yes"
},
{
"type": "pwa-chrome",
@@ -377,7 +378,7 @@
}
},
{
- "type": "node",
+ "type": "pwa-node",
"request": "launch",
"name": "Run Unit Tests",
"program": "${workspaceFolder}/test/unit/electron/index.js",
@@ -396,6 +397,41 @@
"outFiles": [
"${workspaceFolder}/out/**/*.js"
],
+ "cascadeTerminateToConfigurations": [
+ "Attach to VS Code"
+ ],
+ "env": {
+ "MOCHA_COLORS": "true"
+ },
+ "presentation": {
+ "hidden": true
+ }
+ },
+ {
+ "type": "pwa-node",
+ "request": "launch",
+ "name": "Run Unit Tests For Current File",
+ "program": "${workspaceFolder}/test/unit/electron/index.js",
+ "runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.app/Contents/MacOS/Electron",
+ "windows": {
+ "runtimeExecutable": "${workspaceFolder}/.build/electron/Code - OSS.exe"
+ },
+ "linux": {
+ "runtimeExecutable": "${workspaceFolder}/.build/electron/code-oss"
+ },
+ "cascadeTerminateToConfigurations": [
+ "Attach to VS Code"
+ ],
+ "outputCapture": "std",
+ "args": [
+ "--remote-debugging-port=9222",
+ "--run",
+ "${relativeFile}"
+ ],
+ "cwd": "${workspaceFolder}",
+ "outFiles": [
+ "${workspaceFolder}/out/**/*.js"
+ ],
"env": {
"MOCHA_COLORS": "true"
},
@@ -482,6 +518,17 @@
"group": "1_vscode",
"order": 2
}
+ },
+ {
+ "name": "Debug Unit Tests (Current File)",
+ "configurations": [
+ "Attach to VS Code",
+ "Run Unit Tests For Current File"
+ ],
+ "presentation": {
+ "group": "1_vscode",
+ "order": 2
+ }
}
]
}