OSDN Git Service

Merge "docs: Attach debugger to process 2.0 update and corrections" into mnc-mr-docs
authorCheryl Potter <cherylpotter@google.com>
Tue, 19 Apr 2016 16:03:52 +0000 (16:03 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Tue, 19 Apr 2016 16:03:52 +0000 (16:03 +0000)
am: 97f8b66

* commit '97f8b667920cb9ca0da4b048c3a46f0643d4472c':
  docs: Attach debugger to process 2.0 update and corrections

Change-Id: Ic80acf4c733b06d89641562e09347e2fd0d14641

docs/html/images/tools/db-attachprocess.png [new file with mode: 0644]
docs/html/tools/debugging/debugging-studio.jd

diff --git a/docs/html/images/tools/db-attachprocess.png b/docs/html/images/tools/db-attachprocess.png
new file mode 100644 (file)
index 0000000..ca5418e
Binary files /dev/null and b/docs/html/images/tools/db-attachprocess.png differ
index e1d80b9..7e54634 100644 (file)
@@ -31,6 +31,7 @@ page.title=Debugging with Android Studio
 <li><a href="{@docRoot}sdk/installing/studio-tips.html">
 Android Studio Tips and Tricks</a></li>
 <li><a href="{@docRoot}tools/debugging/index.html">Debugging</a></li>
+<li><a href="{@docRoot}tools/help/android-monitor.html">Android Monitor</a></li>
 <li><a href="{@docRoot}tools/help/monitor.html">Device Monitor</a></li>
 <li><a href="{@docRoot}tools/debugging/ddms.html">Using DDMS</a></li>
 </div>
@@ -99,18 +100,32 @@ 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>
+<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=""
+<li>Click <strong>Attach debugger to Android process</strong>
+<img src="{@docRoot}images/tools/as-attach.png"
+alt="Attach debugger to Android process icon"
 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>
+<li>In the <em>Choose Process</em> dialog, select the process you want to
+attach the debugger to.</li>
+<p>By default, the debugger shows the device and app process for the current
+project, as well as any connected hardware devices or virtual devices on your
+computer. Select <strong>Show all processes</strong> to show all processes on
+all devices; the display includes any services that your app created as well as
+system processes, for example.</p>
+<p>From the <strong>Debugger</strong> menu, you can select <strong>Java</strong>,
+<strong>Native</strong>, or <strong>Hybrid</strong>. The latter two options are
+available only if your project contains some native C or C++ source code.</p>
+<li>Click <strong>OK</strong>.</li>
+<p>The <em>Debug</em> window appears. In this case, notice the two tabs to the
+right of the Debug window title: one tab is for debugging native code and the
+other for Java code, as indicated by <strong>-java</strong>. </p>
+<img src="{@docRoot}images/tools/db-attachprocess.png" width="587"
+alt="" />
+<p>Separate debugging sessions have separate tabs and different port numbers,
+which are displayed in parentheses in the tab.</p>
 </ol>
 
 <h2 id="systemLog">Use the System Log</h2>