Debug an already running application without rebooting

Is it possible to connect Eclipse to an already running application without restarting the application?

+4
source share
2 answers

Yes, you can debug an already running application without restarting it.

Steps

Just run the application. Go to devices, select the device, and then the application that is already running, and then select the debug option at the top of the device window. It will start debugging your application.

+3
source

Eclipse

1- Make sure you have the application project code in Eclipse (you cannot debug the application if you don't have one).

2- Open perspective DDMS (window> Open perspective> Other> DDMS)

3- On the "Devices" tab, select your device and expand it if necessary.

4- Select your application (you will see the package name)

5 Click the little error icon next to the Devices tab to attach the debugger.


Android Studio

Click the Attach Debugger icon. This is the one on the right in the figure below.

Android Studio icons

Alternatively, you can access this function from the Run menu> Attach Debugger to Android Process.

You will be presented with a dialog showing connected devices and running applications that you can debug.

Select a process and click OK.

+11
source

All Articles