Skip to content
Snippets Groups Projects
Commit 605d646d authored by wlott's avatar wlott
Browse files

Moved the with-simple-restart to be outside the call to read so that you

can return to the debugger after read-errors.
parent 4472a057
No related branches found
No related tags found
No related merge requests found
...@@ -7,11 +7,11 @@ ...@@ -7,11 +7,11 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu. ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; ;;;
(ext:file-comment (ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/debug.lisp,v 1.15 1991/02/08 13:31:52 ram Exp $") "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/debug.lisp,v 1.16 1991/03/07 17:48:06 wlott Exp $")
;;; ;;;
;;; ********************************************************************** ;;; **********************************************************************
;;; ;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/debug.lisp,v 1.15 1991/02/08 13:31:52 ram Exp $ ;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/debug.lisp,v 1.16 1991/03/07 17:48:06 wlott Exp $
;;; ;;;
;;; CMU Common Lisp Debugger. This is a very basic command-line oriented ;;; CMU Common Lisp Debugger. This is a very basic command-line oriented
;;; debugger. ;;; debugger.
...@@ -311,16 +311,16 @@ ...@@ -311,16 +311,16 @@
;;; on whatever is causing recursive errors. ;;; on whatever is causing recursive errors.
(throw 'debug-loop-catcher nil)) (throw 'debug-loop-catcher nil))
(invoke-debugger condition)))) (invoke-debugger condition))))
(funcall *debug-prompt*) (defun internal-debug ()
(let* ((exp (read)) (let ((*in-the-debugger* t)
(cmd-fun (debug-command-p exp)) (let ((level *debug-command-level*))
;; Must bind level for restart function created by
;; WITH-SIMPLE-RESTART.
(level *debug-command-level*))
(clear-input *debug-io*) (clear-input *debug-io*)
(if cmd-fun (format *debug-io* "~2&Debug (type H for help)~2%"))
(funcall cmd-fun) (let* ((exp (read))
(debug-eval-print exp)))))))))) (cmd-fun (debug-command-p exp)))
(if cmd-fun
(funcall cmd-fun)
(debug-eval-print exp)))))))))))
(when *flush-debug-errors* (when *flush-debug-errors*
(clear-input *debug-io*) (clear-input *debug-io*)
(princ condition) (princ condition)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment