Reactotron: Android support

Created on 25 Aug 2016  路  15Comments  路  Source: infinitered/reactotron

Does reactotron supports debugging on Android?

Most helpful comment

Yep! Don't forget to adb reverse tcp:9090 tcp:9090 to tunnel back to the mothership.

All 15 comments

Yep! Don't forget to adb reverse tcp:9090 tcp:9090 to tunnel back to the mothership.

Thanks!

I'll update the docs to be clear about this step.

I use Genymotion(Version: 2.7.2) run emulator(Samsung Galaxy S6), and run adb reverse tcp:9090 tcp:9090, but still can't connect :(

Any other suggest? Thx.

Is Reactotron running? Are you on a Mac? Does your S6 image run Android 5.x+?

Sorry, I did not provide enough information.
Yes, I try to open cmd and APP, but still can't connect.

OS: OS X
Android version: 6.0

How are you connecting to Reactotron?

Reactotron.configure().connect() should be fine.

Also, check your emulator config in Genymotion. Are you in NAT mode?

image

No firewalls running on your computer or shenanigans like that?

Another option is to try Reactotron.configure({ host: '10.0.3.2' }).connect() as that's Genymotion's default to get back to the host machine. This bypasses the need to do a reverse portforward with ADB.

I try this project demo (link), or Reactotron.configure().connect(),
My mdoe is NAT, and try to added host: '10.0.3.2', but still the same.

I need close http://localhost:8081/debugger-ui? or disable live reload and hot reloading?

Hot reloading is fine.

image

But it does look like Remote JS Debugging hijacks the websocket communication channel!

Can you confirm by turning that off?

image

Fix!!!

I stop "Debug JS Remotely", and it's work!!!

Thanks!!!!! :)

Added these notes to the README. Thank you @FireQQTW and @avishayil for filing these issues!

It's React Native >= 0.31 specific issue. Related to https://github.com/facebook/react-native/issues/9523

Oh good! Thanks @zalmoxisus . Man you're on top of _everything_!

I feel like I owe you several beers @zalmoxisus .

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andrewvy picture andrewvy  路  4Comments

AdrienLemaire picture AdrienLemaire  路  3Comments

scally picture scally  路  5Comments

lndgalante picture lndgalante  路  4Comments

davidjb picture davidjb  路  5Comments