Hi, All
Now the remote debugging is supported for packaged web app APKs on Android. 
Welcome to have a try and report bugs. ; - )
Also some BKMs are shared within below link. Thanks for JamesK' initial work.
https://github.com/crosswalk-project/crosswalk-website/wiki/Remote-Debugging-on-Android
Developers can use remote debugging to debug web applications from Chrome 
Browser on Linux host machines.
*         A. Two ways to enable the remote debugging feature for a web 
application. You can either enable the remote debugging by default when 
packaging the web app or send Android intents to the web app if it's running.
o    Option 1: Enable remote debugging by default when packaging a web app, for 
example,
o    host$ python make_apk.py --package=com.abc.app --name=ABC 
--app-root=/home/abc/dist --app-local-path=src/index.html 
--enable-remote-debugging
Launch the packaged web app APK and remote debugging is enabled by default.
o    Option 2: If a web app APK is not packaged with remote debugging, you can 
launch it and send an intent to enable/disable remote debugging when it's 
running. Note that below intent will enable remote debugging feature for all 
running web apps with Crosswalk.
o    host$ adb shell am broadcast -a org.xwalk.intent -e remotedebugging true
o    To disable remote debugging if a web app is running,
o    host$ adb shell am broadcast -a org.xwalk.intent -e remotedebugging false
*         B. Inspect web pages or web apps in Chrome Browser
o      Open Chrome Browser(version >=29) in the host machine and input 
"chrome://inspect" in the address bar.
o      Web pages or web apps will be shown in the inspection page. Click to the 
button 'inspect' to inspect it.

Yongsheng
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to