Are you running the Flash Debug player? If not, you should download it from
the Adobe web site, itwill make debugging much much easier.

It will give you a nice runtime error dialog when you have an arg mismatch,
with the filename and line number. Well, it will give you the filename and
line number of the intermediate .as file it generates, but you can look in
the file to find a comment which tells you the original .lzx file and line
number.

You can also run the app in the debug flash player from the command line,
using the 'fdb' utility (which ships with the LPS release, in WEB-INF/bin).

You can say

fdb "http://localhost:8080/path-to-your-app.lzx?lzr=swf9";

and then you will get the error printed to your command line shell window.



On Thu, Apr 2, 2009 at 10:31 PM, Gregory Denton <[email protected]>wrote:

> oops...forgot to specify platform versions:
>
> laszlo: 4.2.0.1
> linux 2.6.18-53.el5: CentOS 5.2 64 bit
> Firefox 3.0.6
> Flash LNX 9,0,124,0
>
> On Thu, Apr 2, 2009 at 7:18 PM, Gregory Denton <[email protected]>
> wrote:
> > I'm upgrading my large app to swf9 and having a very difficult time of
> > it. I've done all the things in the wiki and have a clean compile. The
> > app hangs whenever there is a call to a method where the caller has an
> > extra arg that is not in the method args list. This is not mentioned
> > in the wiki and there is no debug message printed! (It is easy, for me
> > at least :-(, to sometimes forget the signature for methods called in
> > a dynamic-like manner.) My primitive debugging technique is to put in
> > Debug.writes, very time consuming with the depth of calls. Is this a
> > known problem? Any way to put out a message at the point it hangs?
> >
> > http://wiki.openlaszlo.org/Runtime_Differences
> >
> > A simple test case:
> >
> > <canvas debug="true">
> >    <simplelayout axis="y"/>
> >    <view name="foo" width="100" height="100" bgcolor="red">
> >        <method name="meth">
> >            Debug.write('NOT PRINTED IF swf9!!!');
> >        </method>
> >    </view>
> >    <button text="foo" onclick="foo.meth(0); Debug.write('NOT PRINTED
> > IF swf9!!!');"/>
> > </canvas>
> >
> > Thanks.
> >
>
>


-- 
Henry Minsky
Software Architect
[email protected]

Reply via email to