[haXe] Stack Trace for Flash 9

Baffo32 baffo32 at gmail.com
Tue Apr 3 23:45:34 CEST 2007


Thank you!!!

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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20070403/0d4ef257/attachment-0001.htm


More information about the Haxe mailing list