blackberry / webworks-gui

GUI Tool for WebWorks 2.0
https://developer.blackberry.com/html5/
Apache License 2.0
3 stars 5 forks source link

As a WebWorks developer, I can easily debug on device or in simulator with remote application content #5

Open kwallis opened 10 years ago

kwallis commented 10 years ago

Description

A powerful “feature” for debugging in sim or on device is to, during development/debugging, point config.xml at a web server for the application content, so that you just need to update the content, restart the app, and boom, you can quickly test your app in a real environment rather than in browser.

With “cordova serve” and “prepare”, we are half way there. I wonder if we could add a feature, in the CLI then exposed to the GUI, that provides maybe a special param on build that will temporarily point the config.xml at the serve location. Then the developer can use the prepare and serve commands as-is and get on-device or in-sim remote debugging with quick refreshes. Ultimate awesome would be for somehow have the device auto-refresh the app, but that is a separate story…

Acceptance Criteria

thtro commented 10 years ago

I use location.reload() in the inspector tab after, running prepare, to avoid re-opening the app. Maybe triggering this command automatically from the "prepare" could work as an auto-refresh?