From 8c254bbf3e9ff5e6196d3093183252b30f909d33 Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Wed, 31 Aug 2022 10:13:39 -0700 Subject: [PATCH] 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 --- .vscode/launch.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 105ef142e44..b685af9c9be 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -67,6 +67,7 @@ "name": "Attach to Main Process", "timeout": 30000, "port": 5875, + "continueOnAttach": true, "outFiles": [ "${workspaceFolder}/out/**/*.js" ], @@ -237,7 +238,7 @@ "cleanUp": "wholeBrowser", "urlFilter": "*workbench.html*", "runtimeArgs": [ - "--inspect=5875", + "--inspect-brk=5875", "--no-cached-data", "--crash-reporter-directory=${workspaceFolder}/.profile-oss/crashes", // 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": [ "Launch VS Code Internal", + "Attach to Main Process", "Attach to Search Process" ], "presentation": { @@ -522,9 +524,10 @@ } }, { - "name": "Renderer and Extension Host processes", + "name": "Renderer, Extension Host, and Main processes", "configurations": [ "Launch VS Code Internal", + "Attach to Main Process", "Attach to Extension Host" ], "presentation": { @@ -555,10 +558,11 @@ } }, { - "name": "Launch VS Code", + "name": "Renderer and Main processes", "stopAll": true, "configurations": [ "Launch VS Code Internal", + "Attach to Main Process" ], "preLaunchTask": "Ensure Prelaunch Dependencies" },