Added a convenient static dumpStack() method.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4470 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -58,6 +58,15 @@ public class Log
|
|||||||
log.debug.apply(log, params);
|
log.debug.apply(log, params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A convenience function for quickly printing a stack trace
|
||||||
|
* to the log, useful for debugging.
|
||||||
|
*/
|
||||||
|
public static function dumpStack () :void
|
||||||
|
{
|
||||||
|
testing(new Error("dumpStack").getStackTrace());
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user