Skip to content

Commit 8c254bb

Browse files
authored
inspect-brk main process with renderer process (microsoft#159695)
Debugging the main process is fairly lightweight, so let's just always do it. Also, have more appropriate launch config names Fixes microsoft#159684
1 parent 29e6391 commit 8c254bb

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.vscode/launch.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"name": "Attach to Main Process",
6868
"timeout": 30000,
6969
"port": 5875,
70+
"continueOnAttach": true,
7071
"outFiles": [
7172
"${workspaceFolder}/out/**/*.js"
7273
],
@@ -237,7 +238,7 @@
237238
"cleanUp": "wholeBrowser",
238239
"urlFilter": "*workbench.html*",
239240
"runtimeArgs": [
240-
"--inspect=5875",
241+
"--inspect-brk=5875",
241242
"--no-cached-data",
242243
"--crash-reporter-directory=${workspaceFolder}/.profile-oss/crashes",
243244
// for general runtime freezes: https://github.com/microsoft/vscode/issues/127861#issuecomment-904144910
@@ -511,9 +512,10 @@
511512
}
512513
},
513514
{
514-
"name": "Search and Renderer processes",
515+
"name": "Search, Renderer, and Main processes",
515516
"configurations": [
516517
"Launch VS Code Internal",
518+
"Attach to Main Process",
517519
"Attach to Search Process"
518520
],
519521
"presentation": {
@@ -522,9 +524,10 @@
522524
}
523525
},
524526
{
525-
"name": "Renderer and Extension Host processes",
527+
"name": "Renderer, Extension Host, and Main processes",
526528
"configurations": [
527529
"Launch VS Code Internal",
530+
"Attach to Main Process",
528531
"Attach to Extension Host"
529532
],
530533
"presentation": {
@@ -555,10 +558,11 @@
555558
}
556559
},
557560
{
558-
"name": "Launch VS Code",
561+
"name": "Renderer and Main processes",
559562
"stopAll": true,
560563
"configurations": [
561564
"Launch VS Code Internal",
565+
"Attach to Main Process"
562566
],
563567
"preLaunchTask": "Ensure Prelaunch Dependencies"
564568
},

0 commit comments

Comments
 (0)