Skip to content

Instantly share code, notes, and snippets.

@vyzo
Last active January 8, 2018 12:50
Show Gist options
  • Save vyzo/e75fdcfd21dea9ff5614127a4cff21bb to your computer and use it in GitHub Desktop.
Save vyzo/e75fdcfd21dea9ff5614127a4cff21bb to your computer and use it in GitHub Desktop.
dumping exception stack traces with dump-stack-trace! and an exception handler
(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