O'Reilly logo

Learning Mobile App Development: A Hands-on Guide to Building Apps with iOS and Android by Michael Eierman, Jakob Iversen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Use the Debugger

The ContactActivity is finished for now. However, it is difficult to test the recently added functionality because currently it does not retrieve contact data. Therefore, to test that the functionality you just added is working properly you have to watch it run. This is done using the debugger.

The first step in using the debugger is to set a breakpoint. A breakpoint tells the debugger to halt execution at that line of code. This gives you the capability to inspect the values in the variables and step through the code line by line. There are two ways to set a breakpoint. The first is to double-click the light gray vertical bar to the left of the code. This will put a blue dot that represents the breakpoint in the bar (Figure ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required