Skip to content Skip to sidebar Skip to footer

How Can I Visualize Android Call Stack Using Eclipse?

Is there anyway I could visualize the call stack of an Android app? All I can find in Eclipse are the running threads: What I want, is to see how my subroutines are called in orde

Solution 1:

You can see the instantaneous call stack in any of your threads. In the DDMS perspective of Eclipse, click on the Threads window.

enter image description here

It'll be empty to start. Select your process on the Devices window, then click on the threads button above the list of processes in the Devices list.

enter image description here

Now you'll see a list of threads in the Threads window. Click on one of the threads and then press the Refresh button below. You'll see the instantaneous stack trace of that thread.

enter image description here

Solution 2:

Add break points in your code somewhere and run in debug mode, you may see call stack then. AFAIK, While run mode it just displays number of threads and process. It doesn't display sequence of calls.

Post a Comment for "How Can I Visualize Android Call Stack Using Eclipse?"