Re: Returning to top-level on error



"Steven M. Haflich" <smh@xxxxxxxxxxxx> writes:

> I think Pascal's answer is correct and quite sufficient in normal
> circumstances and in the way the condition system is normally used,
> but it isn't bulletproof in the face of strangely written
> application code.

Isn't the way to disable the debugger, well, to disable the debugger,
rather than to try to handle conditions of various types?

(defun probably-disable-debugger (c f)
(declare (ignore f))
(abort c))
(setf *debugger-hook* #'probably-disable-debugger)

Christophe
.