Debugging Native Code

If you're working on the framework, you're in luck. Debugging native code is pretty easy. Here is how to do it for the emulator. For actual devices, you can forgo the port forwarding and substitute something else in for generic.

I'm assuming you're debugging a Java application which calls out to a native library here. You can also replace app_process with system_server or any other binary.