Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

devtools extension doesn't load in detached devtools window #4958

Closed
jhen0409 opened this issue Mar 30, 2016 · 5 comments
Closed

devtools extension doesn't load in detached devtools window #4958

jhen0409 opened this issue Mar 30, 2016 · 5 comments

Comments

@jhen0409
Copy link
Contributor

  • Electron version: 0.37.x
  • Operating system: OS X 10.11.3

I used remotedev-extension in Electron, it works well on v0.36.12, but when I upgrade to v0.37, the devtools tab will not displayed.

@kevinsawicki
Copy link
Contributor

Are any errors logged to the terminal when you click the tab in the dev tools for that extension?

@kevinsawicki kevinsawicki added the blocked/need-info ❌ Cannot proceed without more information label Mar 31, 2016
@jhen0409
Copy link
Contributor Author

The problem is BrowserWindow.addDevToolsExtension(...) returns undefined, this means it not loaded.

manifest file here

@jhen0409
Copy link
Contributor Author

jhen0409 commented Apr 4, 2016

@kevinsawicki I found that when I would separate Developer Tools window and restart Electron process, the devpanel will not displayed. Looks it's not problem of this extension.

I also created a tiny extension, it have the same problem:
2016-04-04 11 36 48
Undock into separate window & restart program:
2016-04-04 11 37 38

@zcbenz zcbenz added bug component/devtools and removed blocked/need-info ❌ Cannot proceed without more information labels Apr 7, 2016
@zcbenz zcbenz changed the title v0.37 cannot be display DevTools tab devtools extension doesn't load in detached devtools window Apr 7, 2016
@abdihaikal
Copy link
Contributor

@jhen0409
Try append script below in your app’s main script before the ready event of app module is emitted: (ref : Supported Chrome command line switches)
app.commandLine.appendSwitch('remote-debugging-port', '8315');
app.commandLine.appendSwitch('host-rules', 'MAP * 127.0.0.1');

Open google chrome browser and go to http://127.0.0.1:8315, continue activating the dev tools, and you'll found some error occured. In my case, the Object.observe has been deprecated.

Confirmed by ref : API Deprecations and Removals in Chrome 49

@kevinsawicki
Copy link
Contributor

I believe this has been fixed by the Chrome 50 upgrade. I am no longer able to reproduce it in the Electron 1.1.0 release so I'm going to close this out.

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

No branches or pull requests

4 participants