Update docs with instructions for debugging Android SampleApp.
authordjsollen <djsollen@google.com>
Tue, 10 Feb 2015 21:17:07 +0000 (13:17 -0800)
committerCommit bot <commit-bot@chromium.org>
Tue, 10 Feb 2015 21:17:07 +0000 (13:17 -0800)
Review URL: https://codereview.chromium.org/910173002

site/user/quick/android.md

index 5a39049..833ec12 100644 (file)
@@ -155,14 +155,20 @@ Clean up all generated files
 Debugging on Android
 --------------------
 
-We support debugging on using a GDB wrapper script. The script loads the app
-onto the device, starts a gdbserver instance with that app, and then enters a
-GDB client shell on the host. Necessary symbol files are pulled from the
-device and placed into a temporary folder. The script does not build the app -
-you'll have to do that first.
+We support 2 modes of debugging on Android using GDB wrapper scripts. These
+scripts start a gdbserver instance on the device and then enter an interactive
+GDB client shell on your host. All necessary symbol files should
+be pulled from the device and placed into a temporary folder (android_gdb_tmp).
 
-    # you can include additional arguments in quotes (e.g. "dm --nopdf")
+Note: The debugging scripts do not build the app - you'll have to do that first.
+
+    # COMMAND LINE APPS
+    # include additional arguments in quotes (e.g. "dm --nopdf")
     ./platform_tools/android/bin/android_gdb_native dm
+    
+    # SAMPLE APP
+    # make sure you've installed the app on the device first
+    ./platform_tools/android/bin/android_gdb_app
 
 When the gdb client is ready, insert a breakpoint, and continue to let the
 program resume execution.