[Laszlo-dev] how to debug lzpix (and other network-enabled apps) in swf9

Henry Minsky hminsky at laszlosystems.com
Thu May 1 12:28:01 PDT 2008


Here's how I am debugging the lzpix app in swf9

+ from the command line I compile it

lzc --runtime=swf9 app.lzx

and then I need it to run in the browser so that it has permission to access
the network, and
so that various environment settings are correct a la LzBrowser.

+ From the command line this will launch the app in the browser. It will
pause at a breakpoint in fdb and  wait for you to type "c" to
continue and run it.

fdb "http://127.0.0.1:8080/trunk5/demos/lzpix/app.lzr=swf9.swf"

I would ideally like to run this as

fdb "http://127.0.0.1:8080/trunk5/demos/lzpix/app.lzx?lzr=swf9"

But for some unfathomable reason, it always comes up in the browser with
"debug=true" appended to the URL, and
compiling swf9 with debug=true is broken right now. (note to self, we should
fix that soon)


Max, check out running the lzpix app, it comes up, and sort of runs,
although the pre-loaded queries don't show up,
but it is possible to type a query into the search box (except it thinks
input field is only four pixels wide for some reason).

It goes as far as loading some XML data, as can be seen in the debugger by
the loading progress event callback messages,
 but then chokes with some error before displaying it.




-- 
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20080501/27f5af6b/attachment.html


More information about the Laszlo-dev mailing list