diff --git a/docs/html/guide/developing/debugging/ddms.jd b/docs/html/guide/developing/debugging/ddms.jd index 218ea44370d49..d22ad2fb0c337 100644 --- a/docs/html/guide/developing/debugging/ddms.jd +++ b/docs/html/guide/developing/debugging/ddms.jd @@ -1,4 +1,4 @@ -page.title=Using the Dalvik Debug Monitor Server +page.title=Using DDMS @jd:body
diff --git a/docs/html/guide/developing/debugging/debugging-devtools.jd b/docs/html/guide/developing/debugging/debugging-devtools.jd index d0af1c554b7ff..88e6005c00c97 100644 --- a/docs/html/guide/developing/debugging/debugging-devtools.jd +++ b/docs/html/guide/developing/debugging/debugging-devtools.jd @@ -1,4 +1,4 @@ -page.title=Debugging with the Dev Tools App +page.title=Using the Dev Tools App @jd:body

The Dev Tools application is installed by default on all system images included with the SDK, diff --git a/docs/html/guide/developing/debugging/debugging-projects-cmdline.jd b/docs/html/guide/developing/debugging/debugging-projects-cmdline.jd index f7be0d64b08db..72bb16dd4c6c6 100644 --- a/docs/html/guide/developing/debugging/debugging-projects-cmdline.jd +++ b/docs/html/guide/developing/debugging/debugging-projects-cmdline.jd @@ -1,4 +1,4 @@ -page.title=Debugging Projects in other IDEs +page.title=Debugging in other IDEs @jd:body diff --git a/docs/html/guide/developing/debugging/debugging-projects.jd b/docs/html/guide/developing/debugging/debugging-projects.jd index d4818ce0572af..0e14999e24ea3 100644 --- a/docs/html/guide/developing/debugging/debugging-projects.jd +++ b/docs/html/guide/developing/debugging/debugging-projects.jd @@ -1,4 +1,4 @@ -page.title=Debugging Android Projects in Eclipse +page.title=Debugging in Eclipse @jd:body

diff --git a/docs/html/guide/developing/debugging/index.jd b/docs/html/guide/developing/debugging/index.jd index 0107621bb0be0..362f459741327 100644 --- a/docs/html/guide/developing/debugging/index.jd +++ b/docs/html/guide/developing/debugging/index.jd @@ -10,6 +10,8 @@ page.title=Debugging
  • Debugging Environment
  • Additional Debugging Tools
  • + +
  • Debugging Tips
  • @@ -106,4 +108,78 @@ page.title=Debugging
    The Dev Tools application included in the emulator system image exposes several settings that provide useful information such as CPU usage and frame rate. You can also transfer the application to a hardware device.
    - \ No newline at end of file + + + +

    Debugging Tips

    + +

    While debugging, keep these helpful tips in mind to help you figure out common problems with your +applications:

    + +
    +
    Dump the stack trace
    +
    To obtain a stack dump from emulator, you can log +in with adb shell, use ps to find the process you +want, and then kill -3. The stack trace appears in the log file. +
    + +
    Display useful info on the emulator screen
    +
    The device can display useful information such as CPU usage or highlights +around redrawn areas. Turn these features on and off in the developer settings +window as described in +Debugging with the Dev Tools App. +
    + +
    Get application and system state information from the emulator
    +
    You can access dumpstate information from the adb shell commands. See +dumpsys and +dumpstate on the adb topic page.
    + + + +
    Get wireless connectivity information
    +
    You can get information about wireless connectivity using DDMS. +From the Device menu, select Dump +radio state.
    + +
    Log trace data
    +
    You can log method calls and other tracing data in an activity by calling +{@link android.os.Debug#startMethodTracing(String) startMethodTracing()}. See Profiling with Traceview and +dmtracedump for details.
    + +
    Log radio data
    +
    By default, radio information is not logged to the system (it is a lot of +data). However, you can enable radio logging using the following commands: + +
    +adb shell
    +logcat -b radio
    +
    +
    + +
    Capture screenshots
    +
    The Dalvik Debug Monitor Server (DDMS) can capture screenshots from the emulator. Select +Device > Screen capture.
    + +
    Use debugging helper classes
    +
    Android provides debug helper classes such as {@link android.util.Log + util.Log} and {@link android.os.Debug} for your convenience.
    +
    + +

    See the Troubleshooting document +for answers to some common developing and debugging issues.

    + + + + + + + + + + + + + +