How could I attach debugger to android app?

Hi! I try to debug android app in a part of push notifications. But I have a trouble to connect a debugger to the app.

Could anyone help me and describe what you do to attach the debugger to the app?

I run yarn android, open Android studio and press ‘attach debugger’ button. Then select the app and press Ok.

But it says ‘cannot find a process’.

Probably, there are other ways to debug android native code?

It says that Reactotron is used.

Thank you for your response, Furret!

Reactotron looks useless here because I wanted to debug native code.

Actually, I made it eventually. A few re-builds later debugger attached succesfully. Don’t know why it didn’t work from the first time.

1 Like