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:
parent
7b69cafd0a
commit
c7317beca6
1 changed files with 4 additions and 0 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue