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
In Google Chrome if you want to debug a devtools extension you can do that by opening the devtools in a page where the extension is supposed to work and then open a second devtools window from the first one by clicking on CTRL+SHIFT+J (reference). So the second devtools is actually for debugging the first devtools.
How can I open the second devtools in Electron?
Reacted by Sindre Sorhus, Andrea Parodi, Vincent Taverna and Simon Siefke
Thanks @deepak1556. I managed to open the second devtools from the remote debugging url, but it seems there's no way to debug the extension load.
I'm trying to debug the issues with running Angular Batarang (#915). The extension starts by loading a file called devtoolsBackground.js . If I put a breakpoint on the first line of the file, it doesn't break. If I do the same in Google Chrome, I can reload the first devtools and then the breakpoint in the second devtools fires. Is there any way to get it to work when using remote debugging?
It seems that remote debugging works using websockets, so maybe reconnecting doesn't block, which means the script is loaded before the connection was re-created and that's why I'm missing the first breakpoint.
@etiktin I was poking around with this today for React devtools, and I suspect the problem you're having with the debugger is simply that the scripts to be injected into the page aren't injected, and thus are never run, because Electron hasn't implemented this yet.
Activity
deepak1556 commentedon Sep 20, 2015
you can use remote debugging to achieve that in Electron, visit the debugging url and you should see the devtools url ready for inspection.
etiktin commentedon Sep 20, 2015
Thanks @deepak1556. I managed to open the second devtools from the remote debugging url, but it seems there's no way to debug the extension load.
I'm trying to debug the issues with running Angular Batarang (#915). The extension starts by loading a file called devtoolsBackground.js . If I put a breakpoint on the first line of the file, it doesn't break. If I do the same in Google Chrome, I can reload the first devtools and then the breakpoint in the second devtools fires. Is there any way to get it to work when using remote debugging?
It seems that remote debugging works using websockets, so maybe reconnecting doesn't block, which means the script is loaded before the connection was re-created and that's why I'm missing the first breakpoint.
[-]Debugging DevTools extensions[/-][+]Enable inspecting the devtools window[/+]parro-it commentedon Apr 8, 2016
Any news on this feature?
inklesspen commentedon May 12, 2016
@etiktin I was poking around with this today for React devtools, and I suspect the problem you're having with the debugger is simply that the scripts to be injected into the page aren't injected, and thus are never run, because Electron hasn't implemented this yet.
codebytere commentedon Sep 27, 2017
Closing due to abandonment.
chore: remove upstreamed patches
chore: bump chromium to 152.0.7977.169 (44-x-y) (#55033)