@@ -28,16 +28,33 @@ logcat stream. You can see this by enabling developer mode on your
28
28
Android device, enabling adb on the device, connecting it to your PC
29
29
(you should see a notification that USB debugging is connected) and
30
30
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::
32
33
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
34
41
doing. You can usually see important lines by using logcat's built in
35
42
functionality to see only lines with the ``python `` tag (or just
36
43
grepping this).
37
44
38
45
When your app crashes, you'll see the normal Python traceback here, as
39
46
well as the output of any print statements etc. that your app
40
47
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.
41
58
42
59
Common errors
43
60
-------------
0 commit comments