Skip to content

Commit a691e37

Browse files
Lightning00BladeDevtools-frontend LUCI CQ
authored andcommitted
[debug] Fix VsCode debug script
This is need to be able to run test by test, it will open in terminal then you would need to switch to Debug Console to run scripts when paused. Bug: none Change-Id: Iaa34097a29155f8bf4d58b4ba0c0f4917b6f2031 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6244430 Auto-Submit: Nikolay Vitkov <[email protected]> Reviewed-by: Benedikt Meurer <[email protected]> Commit-Queue: Benedikt Meurer <[email protected]>
1 parent dac7f6f commit a691e37

File tree

1 file changed

+13
-31
lines changed

1 file changed

+13
-31
lines changed

.vscode/devtools-workspace-launch.json

Lines changed: 13 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -2,60 +2,42 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5-
"type": "pwa-chrome",
5+
"type": "chrome",
66
"request": "launch",
77
"name": "Run unit tests in VS Code debugger",
88
"preLaunchTask": "1-build_Debug",
9-
"runtimeExecutable": "/usr/bin/npm",
10-
"runtimeArgs": [
11-
"run",
12-
"test",
13-
"front_end"
14-
],
9+
"runtimeExecutable": "npm",
10+
"runtimeArgs": ["run", "test", "front_end"],
1511
"port": 7722,
1612
"timeout": 30000,
1713
"browserLaunchLocation": "workspace",
1814
"outputCapture": "std",
1915
"trace": true
2016
},
2117
{
22-
"type": "pwa-node",
18+
"type": "node",
2319
"request": "launch",
2420
"name": "Run end-to-end tests in VS Code debugger",
2521
"preLaunchTask": "1-build_Debug",
26-
"runtimeExecutable": "/usr/bin/npm",
27-
"runtimeArgs": [
28-
"run",
29-
"test",
30-
"test/e2e"
31-
]
22+
"runtimeExecutable": "npm",
23+
"runtimeArgs": ["run", "test", "test/e2e"]
3224
},
3325
{
34-
"type": "pwa-node",
26+
"type": "node",
3527
"request": "launch",
3628
"name": "Run test",
3729
"cwd": "${workspaceFolder}",
38-
"runtimeExecutable": "/usr/bin/npm",
39-
"runtimeArgs": [
40-
"run",
41-
"test",
42-
"--",
43-
"${file}"
44-
]
30+
"runtimeExecutable": "npm",
31+
"runtimeArgs": ["run", "test", "--", "${file}"]
4532
},
4633
{
47-
"type": "pwa-node",
34+
"type": "node",
4835
"request": "launch",
4936
"name": "Debug test",
5037
"cwd": "${workspaceFolder}",
51-
"runtimeExecutable": "/usr/bin/npm",
52-
"runtimeArgs": [
53-
"run",
54-
"test",
55-
"--",
56-
"--debug",
57-
"${file}"
58-
]
38+
"runtimeExecutable": "npm",
39+
"console": "integratedTerminal",
40+
"runtimeArgs": ["run", "test", "--", "--debug", "${file}"]
5941
}
6042
]
6143
}

0 commit comments

Comments
 (0)