Reputation: 31
I'm using Eclipse and have an emulator running Android 2.1 and my IntentService. I'd like to step through my onHandleIntent() overridden function. I've put in a breakpoint on the first statement of the function, which is Context context = getBaseContext();. When the intent is called the program just fails and does not go to debug view in Eclipse.
Upvotes: 3
Views: 4118
Reputation: 13051
Add android.os.Debug.waitForDebugger();
statement before the breakpoint in your intentservice code.
This worked for me.
Upvotes: 8
Reputation: 11
debugging multi-thread app is hard as there is no order in which things are executed, each thread will do its tasks as quickly as possible.
try trace messages to debug your code. anyway you should be able to debug your code.
Upvotes: 1