Created
June 4, 2020 23:28
-
-
Save mrdoob/d265a7c41f21960168d29512402a5c0b to your computer and use it in GitHub Desktop.
Log the stack trace of a function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { throw new Error; } | |
catch(e) { | |
console.log(e.stack); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment