Last Updated: February 25, 2016
·
1.88K
· passy

Set a break point in your Android code

If you are not using an IDE, setting break points can be difficult. Luckily, there is a method I didn't know before that makes this easy as pie:

android.os.Debug.waitForDebugger();

Insert this where-ever you want in your code and attach the debugger when the code is reached. Additional benefit: You don't get the performance hit from the debugger until you reach the code.