[Laszlo-dev] what happened to the filename/line-numbers that used to show up in swf10 runtime errors?

P T Withington ptw at laszlosystems.com
Mon Oct 5 13:14:31 PDT 2009


It's me.  Already spotted by André in his review:


On 2009-10-05, at 12:49, André Bargull wrote:

> - lfc/build.xml: "platformopt" is declared in the backtrace switch,  
> but not used.

So, it's not being set for backtrace builds of the LFC.

I'm working on addressing his review comments and will check in a fix  
soon.

In the meantime, this is the fix:

Index: build.xml
===================================================================
--- build.xml	(revision 14937)
+++ build.xml	(working copy)
@@ -206,6 +206,7 @@
              // warnings, the options can be changed to simply -g3
              dobuild(dest,
                      "swf" + v,
+                    platformopt +
                      shlibopt + "--option debugBacktrace --option  
nameFunctions --option warnGlobalAssignments '-D$debug=true'");
            }
          }

[But I might make a different change and have the Flex compiler get  
that option any time nameFunctions is on, since that is a better  
indication of the need for source location info.]

On 2009-10-05, at 16:05, Henry Minsky wrote:

> It's the "-debug=true" flag to the flex compiler. It looks like it  
> is being
> passed when
> I call "lzc" from the command line, and also in the script that the  
> LPS
> server is building internally
> when compiling over the web. Must be my browser cache is faking me out
> again...
>
>
>
>
> On Mon, Oct 5, 2009 at 3:48 PM, P T Withington  
> <ptw at laszlosystems.com>wrote:
>
>> Hm, that's my recollection too.  I have two theories:
>>
>> 1) My remodularization of the LFC build is leaving off an option  
>> that needs
>> to be passed to the Flex compiler
>> 2) Your update of the Flex compiler changed the option we have to  
>> ask for
>> to get this annotation
>>
>>
>> On 2009-10-05, at 13:48, Henry Minsky wrote:
>>
>> I noticed that when I get a runtime error in swf10, it is printing  
>> out a
>>> (Flash) backtrace which only
>>> has class and method names, didn't it used to show filename and
>>> linenumbers
>>> (of the intermediate .as files) ?
>>>
>>>
>>>
>>>
>>>
>>> TypeError: Error #1009: Cannot access a property or method of a null
>>> object
>>> reference.
>>>  at $lzc$class_$2Fcanvas/$m2()
>>>  at Function/http://adobe.com/AS3/2006/builtin::call()<http://adobe.com/AS3/2006/builtin::call%28%29 
>>> >
>>>  at LzEvent/sendEvent()
>>>  at LzCanvas/__LZcallInit()
>>>  at LzCanvas/__LZinstantiationDone()
>>>  at LzInstantiatorService/makeSomeViews()
>>>  at LzInstantiatorService/checkQ()
>>>  at Function/http://adobe.com/AS3/2006/builtin::call()<http://adobe.com/AS3/2006/builtin::call%28%29 
>>> >
>>>  at LzEvent/sendEvent()
>>>  at LzIdleKernel$/__update()
>>>
>>>
>>>
>>> --
>>> Henry Minsky
>>> Software Architect
>>> hminsky at laszlosystems.com
>>>
>>
>>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com




More information about the Laszlo-dev mailing list