Debug only your Android source in Eclipse

Go To StackoverFlow.com

1

I set up a breakpoint in my code, and when I go into the debug mode it stops at the breakpoint. When I step into or over, instead of going to the next line of my source code the debugger takes me into the SDK source code.

How can I avoid this and only view the debugging of source which I wrote?

2012-04-05 01:10
by IPA8654


1

This will happen when you step into code which you did not write (i.e. other dex bytecode), so you need to step over these lines. This will also happen if an exception is thrown, so be careful of that as well. Otherwise, it should work just fine.

Is there a specific issue you're running into?

2012-04-05 01:15
by Tyler Treat
I am just trying to debug only the code which I wrote. Even If I step over (F6 for Eclipse) I still end up going into the SDK code, and I may have to step over 100 lines of SDK code before getting back to my source - IPA8654 2012-04-05 01:21
But does step out not get you straight back to your code - vickirk 2012-04-20 15:35
This is correct, it did not get me straight back into my code, only because I kept on stepping through the code hoping to get back to my source - IPA8654 2012-06-29 04:26


3

You need to set up Step Filtering in Eclipse Preferences->Java->Debug->Step Filtering And add the classes you want to ignore

2012-06-28 05:06
by andydev


0

When you are in not your code - click "Step Return" (Arrow Up-Right) and you will return to your code.

2012-04-05 02:41
by Alex
Ads