[haXe] Stack Trace for Flash 9
Nicolas Cannasse
ncannasse at motion-twin.com
Tue Apr 3 23:27:47 CEST 2007
> Hello;
>
> I use haXe to develop Flash 9 applications on linux, because it is the
> only open source application I've found that can do that.
> I'm trying to track down the source of some exceptions, but the
> haxe.Stack functions are just returning null for me; I guess they only
> work for Flash <=8.
> I've been searching the archives, and I found it stated at
> http://lists.motion-twin.com/pipermail/haxe/2006-August/004283.html that
> one can get stack traces in flash 9 -- but I cannot figure out how.
>
> Could somebody point me in the right direction for finding a stack trace
> in flash 9, please?
haxe.Stack is currently not supported in Flash 9.
In the haxe.unit.TestRunner class, we are using this method to get the
stack trace :
function getBT( e : Dynamic ) : String {
#if flash9
if( e != null && Std.is(e,untyped __global__["Error"] ) )
return e.getStackTrace();
return null;
#else true
return haxe.Stack.toString(haxe.Stack.exceptionStack());
#end
}
Nicolas
More information about the Haxe
mailing list