Web Popup Debugging

I realise that the Web Popup is not supported by the Corona Emulator but would this be possible:

  1. Open web pop up in Safari in Mac OSX instead of on device, the same way that native UI elements are substituted with OS objects instead of phone objects.

  2. Allow the Web Popup to run but not display - retrieved information can still be saved to file or captured in table for output to debug terminal via print.

The fact that it doesn’t run, events don’t occur, and contents can’t be displayed on debug make it horribly difficult to troubleshoot.

Am I missing someway to do this…? [import]uid: 11393 topic_id: 4141 reply_id: 304141[/import]

Yeah some things just can’t be tested in Corona Simulator. All you can really do is enclose them in an if and test on the device or xcode later.
[lua]if ( system.getInfo( “environment” ) ~= “simulator” ) then
–Code that won’t run in simulator
end[/lua] [import]uid: 11024 topic_id: 4141 reply_id: 12829[/import]

Bugger…

Hope that at some point in future we’ll at least be able to get debug output from the web pop up even if we can’t see it. This is going to make a web heavy app difficult to test. [import]uid: 11393 topic_id: 4141 reply_id: 12833[/import]

So you’re able to retrieve info from the pop-up? Seems to me like that wouldn’t be the case. I figured it would be a lot like OpenFeint where it works independently. [import]uid: 11024 topic_id: 4141 reply_id: 12834[/import]

Thats exactly what I’m trying to test out with Niel’s asynchttp:

https://github.com/nielsvanspauwen/corona-async-http

He has a fancy javascript/ajax file sitting in the middle and acting as proxy for the request. Very clever stuff (in theory as I’m still trying to test it!)

It should be saving the web pop up result to a local file which I am then trying to read and output to debug. But unfortunately the web pop up won’t even fire on the Corona emulator.

I guess I’ll have to create a UI text box on screen to dump the contents of the webpopup as an on device debug terminal. But that also means I will have to compile to iOS emulator every time which is time consuming.

The other major issue is that I won’t be able to debug code errors that occur from data provided by the web popup. For that I’ll have to manually populate a file with the expected popup result and read it into a variable at runtime…

Hope Ansca can implement a virtual web pop up in their next release with a safari window. [import]uid: 11393 topic_id: 4141 reply_id: 12837[/import]