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
[Bug]: attached webContents.debugger interferes with renderer devtools dom element selection #34260
Can confirm this has been an issue since at least Electron 8 if not earlier. The issue goes away if the debugger is never attached. Can also confirm that its related to the complexity of the site, making me think its some sort of race condition.
According to the chromium slack, attaching multiple debuggers should be possible, and the likely cause is that devtools is not receiving the right chrome devtools protocol events.
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.
Activity
Kilian commentedon Jul 18, 2022
Can confirm this has been an issue since at least Electron 8 if not earlier. The issue goes away if the debugger is never attached. Can also confirm that its related to the complexity of the site, making me think its some sort of race condition.
According to the chromium slack, attaching multiple debuggers should be possible, and the likely cause is that devtools is not receiving the right chrome devtools protocol events.
Kilian commentedon Jul 21, 2022
protocol events sent this as response to
DOM.pushNodesByBackendIdsToFrontendupon an inspectElement invocation:so it seems the document gets invalidated?
Kilian commentedon Jul 22, 2022
When following the instructions on https://chromedevtools.github.io/devtools-protocol/ I can successfully load verizon and add a devtools and two remote devtools and all of them behave correctly, pointing to the issue being Electron-related. Chrome seems to make use of a single devtools backend, and I'm not sure
webContents.debuggeruses the same devtools backend as the devtools.The code to set up and open devtools is here (I think): https://github.com/electron/electron/blob/main/shell/browser/ui/inspectable_web_contents.cc#L441
And the code to set up a debugger is here: https://github.com/electron/electron/blob/main/shell/browser/api/electron_api_debugger.cc#L90
Would be worth checking if those refer to the same DevToolsAgentHost(?)
github-actions commentedon Oct 21, 2022
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
bughit commentedon Oct 21, 2022
bump
github-actions commentedon Jan 21, 2023
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
41 remaining items
bughit commentedon Sep 1, 2025
bump
electron-issue-triage commentedon Dec 1, 2025
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
bughit commentedon Dec 1, 2025
bump
electron-issue-triage commentedon Mar 2, 2026
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
bughit commentedon Mar 2, 2026
bump
electron-issue-triage commentedon Jun 1, 2026
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!
electron-issue-triage commentedon Jul 2, 2026
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.