From 9b73b8328544e04d0265e0cb9fb821d194590e3b Mon Sep 17 00:00:00 2001 From: Ricardo Cervera Date: Tue, 21 Oct 2014 10:01:14 -0700 Subject: [PATCH] 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 0000000000000000000000000000000000000000..c572b1ef852f5aa67ddef1c207a4379055ceac44 GIT binary patch literal 475 zcmV<10VMv3P)Px#32;bRa{vGi!~g&e!~vBn4jTXf00(qQO+^RZ3KbA33Fs^A%m4rY8FWQhbVF}# zZDnqB07G(RVRU6=Aa`kWXdp*PO;A^X4i^9b0Z2(iK~zY`V|?-A1p_Ss69bLGs0Aay z0v3WQHg4Q_;>3x+fB!wb0aWt=-1PP9*E29M{Qdj) zw=*y>KuD_jfRB$)SXkIB$sy%x{RgX0PtG+>t*oPt1(2NO>gp;XAu;{#ijTiPGcYhn za)|c#_y7O@|L4!2m6es`TfofBtf{Hl+}xa;oXpM5{p`|1h&VSJ%h|JM85kIrELnn2 zdr3(Neha>S{d(cT1$A|G5fKqFF|i#CCz*uV*hD#{g{0)ZibzUI9yoBo*47r6c1BVw z{S8m|E_|^5%b#y5JaW^G8>pWTt}i;Z-g=7DG1ckD4aB4(#?fZWs0D-H0sx4La!`|? R!&3kN002ovPDHLkV1nZr&h!8P literal 0 HcmV?d00001 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