I\'m running ADT (Android Development Tools) in Eclipse and verified that my debugger is working by putting a breakpoint in MainMenu.oncreate (class Activity)
.
in addition to sargas's answer , because in Run mode you could get an error if you forget to comment that line, you could use the following:
if(android.os.Debug.isDebuggerConnected())
android.os.Debug.waitForDebugger();
so it takes care of itself.
Put the following code fragment in the beginning of doInBackground
:
android.os.Debug.waitForDebugger();
Then when you set a breakpoint in that thread, eclipse will find it.