1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-10 22:10:21 +02:00

bind debugging i/o ports in start-repl

* module/system/repl/repl.scm (start-repl): If the debugging ports are
  unbound, bind them to the current i/o ports. Allows errors within
  with-output-to-foo / with-input-from-foo to be sensibly debugged.
This commit is contained in:
Andy Wingo 2010-06-10 13:41:44 +02:00
parent 7b69cafd0a
commit c7317beca6

View file

@ -68,6 +68,10 @@
(if welcome
(repl-welcome repl))
(with-fluids ((*repl-level* level)
(*debug-input-port*
(or (fluid-ref *debug-input-port*) (current-input-port)))
(*debug-output-port*
(or (fluid-ref *debug-output-port*) (current-output-port)))
(the-last-stack #f))
(let prompt-loop ()
(let ((exp (prompting-meta-read repl)))