Skip to content

Debugger for Chrome causing issues when restarting with dev tools open. #1058

Closed
@DJ4ddi

Description

Description
I am using an Electron configuration with a main process accessed using node launch and a renderer process using chrome attach. When sending a restart command to the Chrome debugger while the dev tools are open in the Electron window, both break with the error below, which seems to cause multiple other components to fail (those issues are not in the provided log, as I didn't touch anything after the restart). When reloading the window using F5 from Electron, everything works fine. The restart command also works fine when the dev tools are not open.

The behavior is working as expected using the legacy debugger.

Error messages (appears over 50 times):
[12460:0719/135238.225:ERROR:CONSOLE(67)] "Uncaught TypeError: Cannot read property 'dispatchMessage' of undefined", source: devtools://devtools/bundled/devtools_compatibility.js (67)

Files
vscode-debugadapter-devtoolerrors-launcher.gz
vscode-debugadapter-devtoolerrors-renderer.gz
launch.zip (Launch configurations for both)

Versions
VSCode: 1.58.2
Node.js: 14.16.0
Electron: 12.0.9
Debugger for Chrome 4.12.12

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions