Friday, September 16, 2011

Android debugging made easy

If you are much attached to Microsoft’s visual studio then stepping through the code here in eclipse might be a bit confusing . We might just mix this up with  VS’s shortcuts (keys used here : F5, F6, F7 and F8)

Here’s what they mean in eclipse (ADT) :

F5
Goes to the next step in your program. If the next step is a method / function this command will jump into the associated code.

F6
F6 will step over the call, e.g. it will call a method / function without entering the associated code.

F7
F7 will go to the caller of the method/ function. So this will leave the current code and go to the calling code.

F8
Use F8 to go to the next breakpoint. If no further breakpoint is encountered then the program will normally run

If you are interested to see the Current Stack   then we need to switch to the “debug” view in the top right corner of your eclipse.

About using DDMS for debugging will be available in the next post Smile

No comments:

Post a Comment