Viewing REPL output before an exception
When I encounter an exception in a procedure, I get a Geiser Debug buffer with some output describing the exception message and the procedure where the error occurred. If I place "display" statements inside the procedure, they seem to be lost, and I'm not sure how to view them. Any suggestions?
Example:
(define (failure)
(begin
(display "This message will not be shown")
(/ 2 0)))
(failure)
Output:
(failure)
ice-9/boot-9.scm:1685:16: In procedure raise-exception:
Throw to key numerical-overflow' with args
("divide" "Numerical overflow" #f #f)'.