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.

** Please ensure:

  • I’m using the latest version of react-native-debugger
  • I have read README.md

** Please provide the following information if you found some bugs or have question:

React Native version: Expo SDK 17 Platform: Android Is real device of platform: No Operating System: Arch Linux

I’m trying to get react-native-debugger to work with Expo and my genymotion android device, without success so far. When running the debugger, it will always listen on a random port, and I cannot figure out a way to tell expo and react-native-debugger to agree on the port.

  • Updating my package.json file with the following script didn’t help:
       "scripts": {
        "postinstall": "rndebugger-open --expo"
      }
    
  • Since Expo starts the RN packager for me, I don’t understand how to run REACT_DEBUGGER="unset ELECTRON_RUN_AS_NODE && open -g 'rndebugger://set-debugger-loc?port=19001' ||" npm start
  • I tried xdg-open "rndebugger://set-debugger-loc?host=localhost&port=19001"xdg-mime query default http without success (not sure how to assign react-native-debugger to this specific mime.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

5reactions
mlg87commented, Nov 29, 2017

for anyone that would like a bash function to open the debugger on the port of your choosing

function rndebug() {
  if [ -n "$1" ]
  then
    open "rndebugger://set-debugger-loc?host=localhost&port="$1""
  else
    open "rndebugger://set-debugger-loc?host=localhost&port=19001"
  fi
}
3reactions
AdrienLemairecommented, May 25, 2017

I managed to connect to react-native-debugger, yay!

Basically:

  • Start react-native-debugger app
  • Close browser debugger-ui if opened
  • restart expo project and open on android
  • manually run npm run postinstall in the terminal
  • set remote js debugging

Seeing a lot of errors in the console though, stuff like

Uncaught TypeError: Cannot read property 'getHostNode' of null
    at Object.getHostNode`

Also, I cannot open the <App> component (which is kind of what I care about): 2017-05-25_18-11-40

Any idea regarding these last issues ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Expo Documentation
Create amazing apps that run everywhere. Build one JavaScript/TypeScript project that runs natively on all your users' devices.
Read more >
Easier React Native Development With Expo - Code
Expo provides a layer on top of the React Native APIs to make them easier to use and manage. It also provides tools...
Read more >
Building React Native Apps — Expo or not?
When and Why Should I Use Expo? · 1. Fastest way to build React Native Apps · 2. You don't need to know...
Read more >
How Expo Is Fooling Everyone - Better Programming
To get an APK/IPA of your application, you must either use the publish button in Expo Dev Tools or use the CLI and...
Read more >
Expo - Reviews, Pros & Cons | Companies using Expo
See what developers are saying about how they use Expo. Check out popular companies that use Expo and some tools that integrate with...
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