diff options
author | 2014-11-05 17:08:37 +0000 | |
---|---|---|
committer | 2014-11-05 17:08:37 +0000 | |
commit | df37d45f1311dcbfbcc58b3ff81f3df56c46fcdd (patch) | |
tree | f085d7fc993cfdb284aa4b457e92763d91f06777 | |
parent | 5a818e55a7faee421567eb037ac4e42f20bca0c4 (diff) | |
parent | 25a4e21e13217708e9ff99beb21f88151ea2cbd4 (diff) |
Merge "docs: Add instructions to attach debugger to a running process." into lmp-dev
automerge: 25a4e21
* commit '25a4e21e13217708e9ff99beb21f88151ea2cbd4':
docs: Add instructions to attach debugger to a running process.
-rw-r--r-- | docs/html/images/tools/as-attach.png | bin | 0 -> 475 bytes | |||
-rw-r--r-- | docs/html/sdk/installing/studio-debug.jd | 22 |
2 files changed, 21 insertions, 1 deletions
diff --git a/docs/html/images/tools/as-attach.png b/docs/html/images/tools/as-attach.png Binary files differnew file mode 100644 index 000000000000..c572b1ef852f --- /dev/null +++ b/docs/html/images/tools/as-attach.png 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 <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> |