diff --git a/.vscode/launch.json b/.vscode/launch.json index 1f15e8f014969..14cbafc42fe52 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -85,6 +85,17 @@ "${workspaceRoot}/out/**/*.js" ] }, + { + "type": "node", + "request": "attach", + "name": "Attach to Main Process", + "protocol": "legacy", + "port": 5875, + "sourceMaps": true, + "outFiles": [ + "${workspaceRoot}/out/**/*.js" + ] + }, { "type": "extensionHost", "request": "launch", @@ -134,7 +145,18 @@ "linux": { "runtimeExecutable": "${workspaceRoot}/scripts/code.sh" }, - "urlFilter": "*index.html*" + "urlFilter": "*index.html*", + "runtimeArgs": [ + "${workspaceRoot}", + "--debug=5875" + ], + "webRoot": "${workspaceRoot}" + } + ], + "compounds": [ + { + "name": "Debug VS Code Main and Renderer", + "configurations": ["Launch VS Code", "Attach to Main Process"] } ] } \ No newline at end of file