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}
This commit is contained in:
@ -92,6 +92,7 @@ private int mSuperNiftyDrawingProperty;
|
||||
|
||||
## Debugging Java
|
||||
|
||||
### Eclipse
|
||||
* In Eclipse, make a debug configuration of type "Remote Java Application".
|
||||
Choose a "Name" and set "Port" to `8700`.
|
||||
|
||||
@ -109,6 +110,12 @@ private int mSuperNiftyDrawingProperty;
|
||||
|
||||
* 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
|
||||
|
||||
* To debug early startup, pass `--wait-for-java-debugger` as a command line
|
||||
|
@ -125,6 +125,8 @@ resources, native libraries, etc.
|
||||
* Instrumentation tests included as androidTest.
|
||||
* Symlinks to existing .so files in jniLibs (doesn't generate them).
|
||||
* 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))
|
||||
|
||||
|
Reference in New Issue
Block a user