Last active
January 8, 2018 12:50
-
-
Save vyzo/e75fdcfd21dea9ff5614127a4cff21bb to your computer and use it in GitHub Desktop.
dumping exception stack traces with dump-stack-trace! and an exception handler
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
(with-exception-handler | |
(let (E (current-exception-handler)) | |
(lambda (exn) | |
(continuation-capture | |
(lambda (cont) | |
(dump-stack-trace! cont exn) | |
(E exn))))) | |
(lambda () do-stuff-that-raises)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment