[Laszlo-dev] Debug.backtrace not working?
P T Withington
ptw at pobox.com
Sat Jan 10 11:43:02 PST 2009
That doc is stale.
You can now enable backtracing in the developer console. No recompile
needed.
Section 12.3 is correct. When backtrace is enabled, every debut
message records a backtrace. You inspect the message and then inspect
it's bactrace element to see the full trace.
You should never need to call backtrace() directly. (But if you do,
all that does is create a backtrace, it does not output anything.)
On Jan 10, 2009, at 13:10, Sarah Allen <sarah at ultrasaurus.com> wrote:
> Following the docs: http://www.openlaszlo.org/lps4.2/docs/developers/debugging.html#d0e124973
> I was trying to use backtrace to figure out where one of my objects
> is getting instantiated unexpectedly, but I don't see anything in
> the debugger. I can see the same behavior (or lack thereof) in a
> simple test case.
>
> Is this a bug or am I confused?
>
> <canvas>
>
> <class name="foo">
> <method name="init">
> Debug.write("init");
> Debug.backtrace();
> </method>
> </class>
>
> <foo/>
>
> </canvas
>
> Debugger just says:
> init
>
>
> Thanks,
> Sarah
More information about the Laszlo-dev
mailing list