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.

Still Unable To Use Remote JS Debugging For Android Emulator

See original GitHub issue

When I try to enable Remote JS Debugging I am encountering “Error: Failed to load ‘http://localhost:8082/create_session’”.

It seems like this issue has been covered several times (#276, #284) and I’m wondering if there is a fix in the works, or one I haven’t yet discovered.

I remain unable to effectively debug in an Android emulator. I have just updated to Realm v0.15.0 and the issue persists. I find that if I run the suggested command adb reverse tcp:8081 tcp:8081 followed by adb forward tcp:8082 tcp:8082 that this will allow me to load my app and continue working, but as soon as I hit an error or reload I’m back to square one with the same error message and have to run the two adb commands again.

If sharing information about my project or process will help resolve this issue please let me know and I will gladly pass it along.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
esuttoncommented, Dec 5, 2017

Is adb logcat the * only * way to debug if your app uses realm-js ?

I cannot use Chrome debugger at all. I use a mixture of Genymotion and real devices for Android development.

How to Debug Your App If You Use Realm

  1. Stare at your white screen emulator waiting for app load. ( It literally takes 5 minutes )
  2. Make quick code change
  3. Press Reload to test, go to step 1 and wait 5 minutes, repeat
		"react": "^16.0.0",
		"react-native": "^0.50.3",
		"realm": "^2.0.12",

Work-Around:

None.

react-native-debugger still takes 5 minutes to load.

However, you can watch thousands of ~50 millisecond getProperty calls scroll by in the Network tab while you wait to test your code change.

1reaction
aloifoliacommented, Oct 15, 2017

Similar here. I am using

react 16.0.0
react-native 0.49.2
realm 1.13.0

As soon as I start the JS debugger in genymotion, the promise generated by Realm.open does not succeed nor throw an error. So basically, nothing happens. Has this ever worked flawlessly?

I have two options now:

  1. create my own Realm mock which will be used whenever I want to debug something
  2. ditch Realm altogether which seems to be a viable option, given the time I have been wasting with Realm’s issues when doing basic tasks
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to connect with remote debugger - Stack Overflow
Press Cmd + M on emulator screen · Go to Dev settings > Debug server host & port for device · Set localhost:8081...
Read more >
Troubleshoot known issues with Android Emulator
This page lists known issues, workarounds, and troubleshooting tips for the Android Emulator. If you encounter an issue not listed here or ...
Read more >
about:debugging — Firefox Source Docs documentation
If it still doesn't appear, it may be because the link between your Android device and your computer is not authorized yet. First...
Read more >
Android Emulator - unable to connect - Visual Studio 16.10
Try to debug it in an Android Emulator (i created a new “Pixel” Emulator just to be sure it's not my old ones)....
Read more >
Debugging - React Native
You can also use the ⌘D keyboard shortcut when your app is running in the iOS Simulator, or ⌘M when running in an...
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