From 9b73b8328544e04d0265e0cb9fb821d194590e3b Mon Sep 17 00:00:00 2001 From: Ricardo Cervera Date: Tue, 21 Oct 2014 10:01:14 -0700 Subject: docs: Add instructions to attach debugger to a running process. https://code.google.com/p/android/issues/detail?id=77527 Change-Id: I0c8d0be14c3e240688a31dacb5690ec821fc2adb --- docs/html/images/tools/as-attach.png | Bin 0 -> 475 bytes docs/html/sdk/installing/studio-debug.jd | 22 +++++++++++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 docs/html/images/tools/as-attach.png diff --git a/docs/html/images/tools/as-attach.png b/docs/html/images/tools/as-attach.png new file mode 100644 index 000000000000..c572b1ef852f Binary files /dev/null and b/docs/html/images/tools/as-attach.png differ diff --git a/docs/html/sdk/installing/studio-debug.jd b/docs/html/sdk/installing/studio-debug.jd index 2e3e137be0c6..b0484009af3a 100644 --- a/docs/html/sdk/installing/studio-debug.jd +++ b/docs/html/sdk/installing/studio-debug.jd @@ -6,7 +6,11 @@ page.title=Debugging with Android Studio

In this document

    -
  1. Run your App in Debug Mode
  2. +
  3. Run your App in Debug Mode +
      +
    1. Attach the debugger to a running process
    2. +
    +
  4. Use the System Log
    1. Write log messages in your code
    2. @@ -94,6 +98,22 @@ window also provides other debugging tools covered in the following sections.

      Figure 2. The Debug tool window in Android Studio showing the current thread and the object tree for a variable.

      +

      Attach the debugger to a running process

      + +

      You don't always have to restart your app to debug it. To debug an app that you're already +running:

      + +
        +
      1. Click Attach debugger to Android proccess +.
      2. +
      3. In the Choose Process window, select the device and app you want to attach the +debugger to.
      4. +
      5. To open the Debug tool window, click Debug +.
      6. +
      +

      Use the System Log

      -- cgit v1.2.3-59-g8ed1b