Difference between revisions of "Luna Next Remote WebApplication Debugging"

From WebOS-Ports
Jump to navigation Jump to search
(commented out webapp-launcher, which no longer exists)
Line 5: Line 5:
 
= How to use the WebInspector =
 
= How to use the WebInspector =
  
* flash your target device with a recent version of the webos-ports-dev-image-<modelname> (rather than webos-ports-image-<modelname>)
+
* flash your target device with a recent version of the luneos-dev-image-<modelname> (rather than luneos-image-<modelname>)
 
* start your app  
 
* start your app  
 
<!--in debug mode:  
 
<!--in debug mode:  
Line 12: Line 12:
 
-->
 
-->
 
* 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
 +
<!-- * on emulator WebInspector is available on -->
  
 
   adb forward tcp:1122 tcp:1122
 
   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
 
* now you can point your favourite web browser to localhost:1122 on your development machine to debug the web application

Revision as of 14:53, 27 November 2015

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 luneos-dev-image-<modelname> (rather than luneos-image-<modelname>)
  • start your app
  • 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