Android Debugger in action

Updated 14 December 2016

Save

Have you ever tried Android Debugger ?

if no then this blog is surely for you…

 

What Android Debugger do basically?

Examine variables and evaluate expressions at runtime.

We can check what’s inside the variable at run time. Not only the variable, in debug mode we can watch the system as well as custom threads. Thus this is a great tool for the multi-threaded app and help inĀ  debugging the possible cause of the problem.

 

How to attach debugger to your app?

Rather than running your application you can press debug buttonĀ as-debugbutton in android studio to attach the debugger with you application. Alternatively, we can debug app using ‘Shift + F9’.

 

How to set breakpoints and watch value contained in the variables?

You can simple set a breakpoint on any statement by mouse1 click.

What happen basically in setting break point is all the threads are suspended for a moment(default feature can be change). Also breakpoint breaks the execution of the source code at that instant.

Debugging on setting breakpoint:

 

 

 

Screenshot from 2016-05-27 20:51:14

 

 

 

 

author
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


Be the first to comment.

Start a Project


    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home