sindresorhus / electron-debug

Adds useful debug features to your Electron app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not working in Electron 5.0 beta 7

hieuhlc opened this issue · comments

I have installed electron-debug and electron-react-devtools, both latest versions.
I put this line before creating BrowserWindow in main process

electronDebug({ showDevTools: false })

However I got this instead of React DevTools installed in Console

Screen Shot 2019-03-28 at 14 11 27

Please help. Thank you

I think this is an issue in Electron v4. I haven't had time to track down why it happens.

Would probably need to add https://github.com/MarshallOfSound/electron-devtools-installer as a dependency and handle installing DevTools extensions that way instead of recommending https://github.com/firejune/electron-react-devtools (which is also outdated). The benefit would be that we could easily support many more DevTools extensions.

Thanks @sindresorhus for your suggestion, however I got another issue: the React Developer Tools was installed and showing in Console however it cannot connect to React

Screen Shot 2019-03-28 at 16 21 00

When I click the link to troubleshooting instructions, I got error in electron console

Screen Shot 2019-03-28 at 16 21 23

This is a dead end for me.

@hieuhlc That's an Electron issue: electron/electron#17586