Does it make sense to harmonize this for swf9, e.g. add an API in swf9 for:
Debug.write(new Error('I want a stack trace please').getStackTrace()) )
?
P T Withington wrote:
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 <[email protected]> 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
--
Regards,
Max Carlson
OpenLaszlo.org