[Laszlo-dev] ack! completely blank screen, compiling to swf9 with debug=true

Sarah Allen sarah at ultrasaurus.com
Thu Mar 19 06:35:02 PDT 2009


hmmm... I found the bug with the Debug Flash Player installed.

Note, when the bug was there (trying to call a method on a null  
object), when I set
compiler.swf9.catcherrors=true
I got this (unhelpful) compiler error
org.openlaszlo.sc.CompilerError: line unknown: Error: Return value  
must be undefined, in line: }}
line unknown: Error: Return value must be undefined, in line: }}

Not sure if that is worth isolating and reporting as a bug, but it was  
pretty frustrating.  (Debugging was further complicated by having had  
trunk at some point when the debugger had errors in swf9 which was  
fixed by 'svn up' but lost me for a bit)

Thanks for all of your help, Henry & Raju!

Sarah

On Mar 18, 2009, at 2:46 PM, Henry Minsky wrote:

> Oh you're right, I was thinking of running without debugging enabled
> for some reason.
>
>
> On Wed, Mar 18, 2009 at 5:34 PM, Max Carlson <max at openlaszlo.org>  
> wrote:
>> Hmm - I thought catcherrors caused the debugger to show errors in a  
>> (perhaps
>> more) useful way - with lzx line numbers...  Is this incorrect?
>>
>> Henry Minsky wrote:
>> <snip/>
>>>>
>>>> You may have better luck if you uncomment this line in
>>>> WEB-INF/lps/config/lps.properties:
>>>> compiler.swf9.catcherrors=true
>>>
>>> I would be reluctant to set the catcherrors=true. That was put in to
>>> help people who want the app to proceed
>>> in sprite of broken code, like swf8 does. But it will mostly serve  
>>> to
>>> mask the real source of errors, and the
>>> flash debug player will give you useful runtime errors if you let  
>>> it.
>>
>> <snip/>
>>
>> --
>> Regards,
>> Max Carlson
>> OpenLaszlo.org
>>
>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20090319/2b47f452/attachment.html


More information about the Laszlo-dev mailing list