Difference between revisions of "Luna Next Remote WebApplication Debugging"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
* flash your target device with a recent version of the webos-ports-dev-image | * flash your target device with a recent version of the webos-ports-dev-image | ||
− | + | * start your app in debug mode: | |
− | * start in debug mode: | + | ** on device: webapp-launcher -a <path to your app>/appinfo.json --debug |
− | ** on device: | + | ** on emulator: QTWEBKIT_INSPECTOR_SERVER=10.0.2.15:1122 webapp-launcher -a <path to your app>/appinfo.json --debug |
− | ** on emulator: QTWEBKIT_INSPECTOR_SERVER=10.0.2.15:1122 | ||
− | |||
* for debugging on a real device you need now to configured a port forwarding through adb on your development machine with (the WebInspector is available on localhost:1122 on the target device | * for debugging on a real device you need now to configured a port forwarding through adb on your development machine with (the WebInspector is available on localhost:1122 on the target device | ||
Revision as of 20:21, 16 December 2013
Overview
It's very easily to remote debug web applications with luna-next. WebKit provides a powerful tool for this: The WebInspector
How to use the WebInspector
- flash your target device with a recent version of the webos-ports-dev-image
- start your app in debug mode:
- on device: webapp-launcher -a <path to your app>/appinfo.json --debug
- on emulator: QTWEBKIT_INSPECTOR_SERVER=10.0.2.15:1122 webapp-launcher -a <path to your app>/appinfo.json --debug
- for debugging on a real device you need now to configured a port forwarding through adb on your development machine with (the WebInspector is available on localhost:1122 on the target device
adb forward tcp:1122 tcp:1122
- now you can point your favourite web browser to localhost:1122 on your development machine to debug the web application