Skip to content

Commit e942ffd

Browse files
committed
Documented adb and logcat commands
1 parent 8d8ac9a commit e942ffd

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

doc/source/troubleshooting.rst

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,33 @@ logcat stream. You can see this by enabling developer mode on your
2828
Android device, enabling adb on the device, connecting it to your PC
2929
(you should see a notification that USB debugging is connected) and
3030
running ``adb logcat``. If adb is not in your PATH, you can find it at
31-
``/path/to/Android/SDK/platform-tools/adb``.
31+
``/path/to/Android/SDK/platform-tools/adb``, or access it through
32+
python-for-android with the shortcut::
3233

33-
Running this command gives a lot of information about what Android is
34+
python-for-android logcat
35+
36+
or::
37+
38+
python-for-android adb logcat
39+
40+
Running logcat command gives a lot of information about what Android is
3441
doing. You can usually see important lines by using logcat's built in
3542
functionality to see only lines with the ``python`` tag (or just
3643
grepping this).
3744

3845
When your app crashes, you'll see the normal Python traceback here, as
3946
well as the output of any print statements etc. that your app
4047
runs. Use these to diagnose the problem just as normal.
48+
49+
The adb command passes its arguments straight to adb itself, so you
50+
can also do other debugging tasks such as ``python-for-android adb
51+
devices`` to get the list of connected devices.
52+
53+
For further information, see the Android docs on `adb
54+
<http://developer.android.com/intl/zh-cn/tools/help/adb.html>`_, and
55+
on `logcat
56+
<http://developer.android.com/intl/zh-cn/tools/help/logcat.html>`_ in
57+
particular.
4158

4259
Common errors
4360
-------------

0 commit comments

Comments
 (0)