This repository has been archived by the owner on Apr 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
Android debugging
James Ketrenos edited this page Sep 6, 2013
·
6 revisions
. xwalk/build/android/envsetup.sh --target-arch=x86
xwalk_android_gyp -Dandroid_full_debug=1
ninja -C out/Debug xwalk_core_shell_apk
adb install -r out/Debug/apks/XWalkCoreShell.apk
# Build and install test suite
ninja -C out/Debug xwalk_core_shell_apk xwalk_core_test_apk
adb install -r out/Debug/apks/XWalkCoreTest.apk
# Set up environment
export XWALK_OS_ANDROID=1
. xwalk/build/android/envsetup.sh --target-arch=x86
# Run test
build/android/run_instrumentation_tests.py --test-apk XWalkCoreTest --verbose -I -f testExtensionEcho
- On Device, launch the App
- On Host machine, to debug the browser process, use:
adb_gdb_xwalk_core_shell --verbose
- [Deprecated] To debug the renderer process, use:
adb_gdb_xwalk_core_shell --verbose --sandboxed=[0-6]
- If you wan't to debug the startup process
#Edit a file named 'xwview-shell-command-line' with content:
Xwalk --wait-for-debugger
#Then push it to device
adb push xwview-shell-command-line /data/local/tmp/xwview-shell-command-line
#Then launch the application and use adb_gdb_xwalk_core_shell to debug
- Import the project into Eclipse workspace:
New -> Android -> Android Project from Existing Code -> point to XwalkCore project root(src/xwalk/runtime/android/core_shell)
- Add third party dependencies to project
add Java code of xwalk, base, content, ui... to project
- Launch application to debug, you can use command line to control debug the startup
#In xwview-shell-command-line, write content as follow and push it to device
XWalk --wait-for-java-debugger