dependency: ES6 properties
works OK in Chrome
works OK in Chrome
/**
* Dumps the stack trace to the browser console (by creating an error).
*/
Utilities.Debug.stackTrace = function() {
var err = new Error();
var stack = err.stack; //force read of ES6 property
//Utilities.ConsoleWriteDebug(err.Stack);
Utilities.ConsoleWriteWarning(stack);
};
//usage:
dumpStackTrace();
Comments
Post a Comment