We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
I'm trying to get the "stacktrace" string and return it other than log it in the console. However, following code doesn't work...
function getStacktrace() { var stringifiedStack; var callback = function(stackframes) { stringifiedStack = stackframes.map(function(sf) { return sf.toString(); }).join('\n'); //console.log(stringifiedStack); }; var errback = function(err) { console.log(err.message); }; StackTrace.get().then(callback).catch(errback); //console.log(stringifiedStack); return stringifiedStack; }
I'm trying to get the "stacktrace" string and return it other than log it in the console. However, following code doesn't work...