diff --git a/docs/html/images/tools/as-attach.png b/docs/html/images/tools/as-attach.png new file mode 100644 index 0000000000000..c572b1ef852f5 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 2e3e137be0c62..b0484009af3ac 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