Debugging with the Debugger

In addition to log messages, you can use the Eclipse debugger to set breakpoints, single step, and view the state of your program. First, enable your project for debugging by adding the android:debuggable="true" option in your AndroidManifest.xml file:7

Download Sudokuv1/AndroidManifest.xml

<application android:icon="@drawable/icon" android:label ="@string/app_name" android:debuggable="true">

Then, simply right-click the project, and select Debug As > Android Application.

0 0

Post a comment