Commit 8c9318ff authored by estevenson's avatar estevenson Committed by Commit bot

Add basic debugging instructions for Android Studio.

The docs still need to be updated with more detailed instructions and
tips, but currently the docs don't even mention debugging in Android
Studio.

BUG=620034

Review-Url: https://codereview.chromium.org/2740353003
Cr-Commit-Position: refs/heads/master@{#456185}
parent 7cb26a09
...@@ -92,6 +92,7 @@ private int mSuperNiftyDrawingProperty; ...@@ -92,6 +92,7 @@ private int mSuperNiftyDrawingProperty;
## Debugging Java ## Debugging Java
### Eclipse
* In Eclipse, make a debug configuration of type "Remote Java Application". * In Eclipse, make a debug configuration of type "Remote Java Application".
Choose a "Name" and set "Port" to `8700`. Choose a "Name" and set "Port" to `8700`.
...@@ -109,6 +110,12 @@ private int mSuperNiftyDrawingProperty; ...@@ -109,6 +110,12 @@ private int mSuperNiftyDrawingProperty;
* Run your debug configuration, and switch to the Debug perspective. * Run your debug configuration, and switch to the Debug perspective.
### Android Studio
* Build and install the desired target
* Click the "Attach debugger to Android process" (see
[here](https://developer.android.com/studio/debug/index.html) for more)
## Waiting for Java Debugger on Early Startup ## Waiting for Java Debugger on Early Startup
* To debug early startup, pass `--wait-for-java-debugger` as a command line * To debug early startup, pass `--wait-for-java-debugger` as a command line
......
...@@ -125,6 +125,8 @@ resources, native libraries, etc. ...@@ -125,6 +125,8 @@ resources, native libraries, etc.
* Instrumentation tests included as androidTest. * Instrumentation tests included as androidTest.
* Symlinks to existing .so files in jniLibs (doesn't generate them). * Symlinks to existing .so files in jniLibs (doesn't generate them).
* Editing resource xml files. * Editing resource xml files.
* Java debugging (see
[here](/docs/android_debugging_instructions.md#Android-Studio))
### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues/detail?id=620034)) ### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues/detail?id=620034))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment