Skip to content

Enable inspecting the devtools window #2835

Closed

Description

@etiktin

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?

Activity

  1. deepak1556 commented on Sep 20, 2015

    @deepak1556
    Member

    you can use remote debugging to achieve that in Electron, visit the debugging url and you should see the devtools url ready for inspection.

  2. etiktin commented on Sep 20, 2015

    @etiktin
    ContributorAuthor

    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.

  3. changed the title [-]Debugging DevTools extensions[/-] [+]Enable inspecting the devtools window[/+] on Mar 5, 2016
  4. parro-it commented on Apr 8, 2016

    @parro-it
    Contributor

    Any news on this feature?

  5. inklesspen commented on May 12, 2016

    @inklesspen

    @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.

  6. codebytere commented on Sep 27, 2017

    @codebytere
    Member

    Closing due to abandonment.

  7. added a commit that references this issue on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions