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.
Written by Pascal Hartig
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Debugging
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#