From b6b7e75823b06b4d3901c2b2762efe717124b15f Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 6 Dec 2006 20:21:07 +0000 Subject: [PATCH] Added a convenient static dumpStack() method. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4470 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/Log.as | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/as/Log.as b/src/as/Log.as index 9bd53efbb..0b4aafa99 100644 --- a/src/as/Log.as +++ b/src/as/Log.as @@ -58,6 +58,15 @@ public class Log 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 */