You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Electron 6: debugging extension quits immediately #79929
bugIssue identified by VS Code Team member as probable bugelectron-blockerIssues in next update of Electron preventing updateupstreamIssue identified as 'upstream' component related (exists outside of VS Code)verifiedVerification succeeded
[2019-08-27 12:56:01.181] [renderer1] [error] Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:18925).: Error: Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:18925).
at handleErrorResponse (file:///Users/demohan/Downloads/Visual Studio Code - Exploration.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2658:583)
at file:///Users/demohan/Downloads/Visual Studio Code - Exploration.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2658:37
at processTicksAndRejections (internal/process/task_queues.js:89:5)
[2019-08-27 12:56:20.039] [renderer1] [error] Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:45392).: Error: Cannot connect to runtime process, timeout after 10000 ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:45392).
at handleErrorResponse (file:///Users/demohan/Downloads/Visual Studio Code - Exploration.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2658:583)
at file:///Users/demohan/Downloads/Visual Studio Code - Exploration.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2658:37
at processTicksAndRejections (internal/process/task_queues.js:89:5)
When Electron is run as node (via the ELECTRON_RUN_AS_NODE flag), it immediately crashes when passing the --inspect-brk flag:
Passing a --inspect flag instead works fine.
Since Electron is crashing deep down in C++ code (instead of showing a message that --inspect-brk is not supported), I consider this a severe Electron 6.0 bug (and I don't plan to work around this issue in VS Code).
bugIssue identified by VS Code Team member as probable bugelectron-blockerIssues in next update of Electron preventing updateupstreamIssue identified as 'upstream' component related (exists outside of VS Code)verifiedVerification succeeded
Activity
deepak1556 commentedon Aug 27, 2019
Renderer log shows
bpasero commentedon Aug 28, 2019
Adding Andre Weinand (@weinand) Isidor Nikolic (@isidorn) to investigate too.
deepak1556 commentedon Aug 28, 2019
Just to update this happens on all platforms, I tested on windows, macOS and linux.
weinand commentedon Sep 2, 2019
When Electron is run as node (via the

ELECTRON_RUN_AS_NODEflag), it immediately crashes when passing the--inspect-brkflag:Passing a
--inspectflag instead works fine.Since Electron is crashing deep down in C++ code (instead of showing a message that
--inspect-brkis not supported), I consider this a severe Electron 6.0 bug (and I don't plan to work around this issue in VS Code).I've added the "upstream" label.
bpasero commentedon Sep 2, 2019
I wonder if this is a regression from electron/electron#19316 or similar.
deepak1556 commentedon Sep 3, 2019
Fix at electron/electron#20098 , should be available with next release.
weinand commentedon Oct 30, 2019
Extension debugging works fine with Electron 6.