am 3a5c054a: Merge "Fix debugging-log documentation errors."
* commit '3a5c054ac3a33753c3aeb2cb26e7b05d64291839': Fix debugging-log documentation errors.
This commit is contained in:
@@ -284,22 +284,8 @@ adb logcat -b radio
|
|||||||
<h2 id="viewingStd">Viewing stdout and stderr</h2>
|
<h2 id="viewingStd">Viewing stdout and stderr</h2>
|
||||||
|
|
||||||
<p>By default, the Android system sends <code>stdout</code> and <code>stderr</code>
|
<p>By default, the Android system sends <code>stdout</code> and <code>stderr</code>
|
||||||
(<code>System.out</code> and <code>System.err</code>) output to <code>/dev/null</code>. In
|
output to <code>/dev/null</code>. (The Java <code>System.out</code> and <code>System.err</code>
|
||||||
processes that run the Dalvik VM, you can have the system write a copy of the output to the log
|
streams go to the log.)
|
||||||
file. In this case, the system writes the messages to the log using the log tags
|
|
||||||
<code>stdout</code> and <code>stderr</code>, both with priority <code>I</code>.</p>
|
|
||||||
|
|
||||||
<p>To route the output in this way, you stop a running emulator/device instance and then use the
|
|
||||||
shell command <code>setprop</code> to enable the redirection of output. Here's how you do it:</p>
|
|
||||||
<pre>
|
|
||||||
$ adb shell stop
|
|
||||||
$ adb shell setprop log.redirect-stdio true
|
|
||||||
$ adb shell start
|
|
||||||
</pre>
|
|
||||||
|
|
||||||
<p>The system retains this setting until you terminate the emulator/device instance. To use the
|
|
||||||
setting as a default on the emulator/device instance, you can add an entry to
|
|
||||||
<code>/data/local.prop</code> on the device.</p>
|
|
||||||
|
|
||||||
<h2 id="DebuggingWebPages">Debugging Web Apps</h2>
|
<h2 id="DebuggingWebPages">Debugging Web Apps</h2>
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
Reference in New Issue
Block a user