question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Devtools don't show on OSX

See original GitHub issue

Hi! I’m working on an Electron app and I’m testing it on OSX and Windows.

Everything is fine on Windows but my 2 extensions doesn’t show at all on OSX.

This is what I use:

const { default: installExtension, REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS } = require('electron-devtools-installer')

  installExtension(REACT_DEVELOPER_TOOLS)
    .then((name) => {
      log.debug(`Added Extension: ${name}`)
    })
    .catch((err) => {
      log.error('An error occurred: ', err)
    })

  installExtension(REDUX_DEVTOOLS)
    .then((name) => {
      log.debug(`Added Extension: ${name}`)
    })
    .catch((err) => {
      log.error('An error occurred: ', err)
    })

What can I check or change to have them on OSX?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

13reactions
RoderickJDunncommented, Feb 28, 2021

I had the same issue. I had to do 3 things to get both extensions to show up in devtools.

  1. Upgrade Electron - I was on 11.1 but had to upgrade to 11.3
  2. Install this package from github instead of npm. Run the command yarn add git+https://github.com/MarshallOfSound/electron-devtools-installer.git to install the latest on master.
  3. Use the new option “loadExtensionOptions” and include “allowFileAccess: true” to the options passed into “installExtension”, as follows:
import installExtension, { REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS } from 'electron-devtools-installer';
...
const forceDownload = !!process.env.UPGRADE_EXTENSIONS;
const extensions = [REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS];
installExtension(
      extensions,
      {loadExtensionOptions: {allowFileAccess: true}, forceDownload: forceDownload}
    )
    .catch(console.log);
4reactions
timothymalchamcommented, Aug 12, 2021

Following @RoderickJDunn’s instructions allowed the redux dev tools to show up, but not the react dev tools. Has anybody else found a solution to this?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chrome dev tools not showing on Mac - Super User
When I open the Chrome with "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --user-data-dir=/tmp/whatever , the developer tools ...
Read more >
Chrome Web Dev Tools not showing up on Mac OXS 10.11.2
Since some days I can not open the Chrome Developer Tools anymore. Neither the keyboard shortcut nor right-click --> inspect element works.
Read more >
Chrome Dev Tools Mac - console log messages not showing
I cannot get the console messages to display. It says there are 4 user messages but I actually want to view them, and...
Read more >
Use the developer tools in the Develop menu in Safari on Mac
If you don't see the Develop menu in the menu bar, choose Safari > Settings, click Advanced, then select “Show Develop menu in...
Read more >
How to Use Web Inspector to Debug iOS device
On your Mac, launch Safari and go to Safari menu | Preferences | Advanced then check 'Show Develop menu in menu bar' if...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found