inspect-brk main process with renderer process (#159695)

Debugging the main process is fairly lightweight, so let's just always do it. Also, have more appropriate launch config names

 Fixes #159684
This commit is contained in:
Connor Peet 2022-08-31 10:13:39 -07:00 committed by GitHub
parent 29e6391a40
commit 8c254bbf3e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

12
.vscode/launch.json vendored
View file

@ -67,6 +67,7 @@
"name": "Attach to Main Process", "name": "Attach to Main Process",
"timeout": 30000, "timeout": 30000,
"port": 5875, "port": 5875,
"continueOnAttach": true,
"outFiles": [ "outFiles": [
"${workspaceFolder}/out/**/*.js" "${workspaceFolder}/out/**/*.js"
], ],
@ -237,7 +238,7 @@
"cleanUp": "wholeBrowser", "cleanUp": "wholeBrowser",
"urlFilter": "*workbench.html*", "urlFilter": "*workbench.html*",
"runtimeArgs": [ "runtimeArgs": [
"--inspect=5875", "--inspect-brk=5875",
"--no-cached-data", "--no-cached-data",
"--crash-reporter-directory=${workspaceFolder}/.profile-oss/crashes", "--crash-reporter-directory=${workspaceFolder}/.profile-oss/crashes",
// for general runtime freezes: https://github.com/microsoft/vscode/issues/127861#issuecomment-904144910 // for general runtime freezes: https://github.com/microsoft/vscode/issues/127861#issuecomment-904144910
@ -511,9 +512,10 @@
} }
}, },
{ {
"name": "Search and Renderer processes", "name": "Search, Renderer, and Main processes",
"configurations": [ "configurations": [
"Launch VS Code Internal", "Launch VS Code Internal",
"Attach to Main Process",
"Attach to Search Process" "Attach to Search Process"
], ],
"presentation": { "presentation": {
@ -522,9 +524,10 @@
} }
}, },
{ {
"name": "Renderer and Extension Host processes", "name": "Renderer, Extension Host, and Main processes",
"configurations": [ "configurations": [
"Launch VS Code Internal", "Launch VS Code Internal",
"Attach to Main Process",
"Attach to Extension Host" "Attach to Extension Host"
], ],
"presentation": { "presentation": {
@ -555,10 +558,11 @@
} }
}, },
{ {
"name": "Launch VS Code", "name": "Renderer and Main processes",
"stopAll": true, "stopAll": true,
"configurations": [ "configurations": [
"Launch VS Code Internal", "Launch VS Code Internal",
"Attach to Main Process"
], ],
"preLaunchTask": "Ensure Prelaunch Dependencies" "preLaunchTask": "Ensure Prelaunch Dependencies"
}, },