Skip to content

Remote Debug on Android

sqliu edited this page Aug 29, 2013 · 13 revisions

Remote Debug of XWalk Core Shell on Android

XWalkCoreShell enables remote debug by default.

Forward Debug Port

The unix domain socket port in Android device is "org.xwalk.core.xwview.shell_devtools_remote", the port needs to be forwarded to host machine (eg, 9222):

adb forward tcp:9222 localabstract:org.xwalk.core.xwview.shell_devtools_remote

If you have to check whether the domain socket port is opened, run "adb shell" and then run command in device

#cat /proc/net/unix
e89ba100: 00000002 00000000 00010000 0001 01 29471 @org.xwalk.core.xwview.shell_devtools_remote
...

Use Chrome in Host to Remote Debug

In host machine connected with device, launch Chrome desktop, open "http://127.0.0.1:9222", or open "chrome://inspect" (requires >Chrome V28)

Clone this wiki locally