Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
print stack trace on JS anywhere
var printStackTrace = function(msg) {
try {
var ex = new Error(msg);
console.log(ex);
} catch (ex) {}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment