summaryrefslogtreecommitdiffstats
path: root/docs/html/sdk
diff options
context:
space:
mode:
authorRicardo Cervera <rcervera@google.com>2014-10-21 10:01:14 -0700
committerRicardo Cervera-Navarro <rcervera@google.com>2014-10-27 19:25:50 +0000
commitca7100102a07c41bc43091f45179ab3b3ac04457 (patch)
tree9c9d15d7cc5ffd9e6548bcd53096e3007c7a5c67 /docs/html/sdk
parent4fee8c89eb49d4935b4a2725f82d3a08f6a938d3 (diff)
downloadframeworks_base-ca7100102a07c41bc43091f45179ab3b3ac04457.zip
frameworks_base-ca7100102a07c41bc43091f45179ab3b3ac04457.tar.gz
frameworks_base-ca7100102a07c41bc43091f45179ab3b3ac04457.tar.bz2
docs: Add instructions to attach debugger to a running process.
https://code.google.com/p/android/issues/detail?id=77527 Change-Id: I0c8d0be14c3e240688a31dacb5690ec821fc2adb
Diffstat (limited to 'docs/html/sdk')
-rw-r--r--docs/html/sdk/installing/studio-debug.jd22
1 files changed, 21 insertions, 1 deletions
diff --git a/docs/html/sdk/installing/studio-debug.jd b/docs/html/sdk/installing/studio-debug.jd
index 2e3e137..b048400 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
<div id="qv">
<h2>In this document</h2>
<ol>
- <li><a href="#runDebug">Run your App in Debug Mode</a></li>
+ <li><a href="#runDebug">Run your App in Debug Mode</a>
+ <ol>
+ <li><a href="#attachDebug">Attach the debugger to a running process</a></li>
+ </ol>
+ </li>
<li><a href="#systemLog">Use the System Log</a>
<ol>
<li><a href="#systemLogWrite">Write log messages in your code</a></li>
@@ -94,6 +98,22 @@ window also provides other debugging tools covered in the following sections.</p
<p class="img-caption"><strong>Figure 2.</strong> The Debug tool window in Android Studio showing
the current thread and the object tree for a variable.</p>
+<h3 id="attachDebug">Attach the debugger to a running process</h3>
+
+<p>You don't always have to restart your app to debug it. To debug an app that you're already
+running:</p>
+
+<ol>
+<li>Click <strong>Attach debugger to Android proccess</strong>
+<img src="{@docRoot}images/tools/as-attach.png" alt=""
+style="vertical-align:bottom;margin:0;height:20px"/>.</li>
+<li>In the <em>Choose Process</em> window, select the device and app you want to attach the
+debugger to.</li>
+<li>To open the <em>Debug</em> tool window, click <strong>Debug</strong>
+<img src="{@docRoot}images/tools/as-debugwindowbutton.png"
+alt="" style="vertical-align:bottom;margin:0;height:20px"/>.</li>
+</ol>
+
<h2 id="systemLog">Use the System Log</h2>