3 Debugging Lisp Programs
The Debugger is entered when an error is signaled that is not handled by any error-handling code. You can also explicitly enter the Debugger by calling the Common Lisp functionserror
,cerror
, orbreak
, by calling the extensioninvoke-debugger
, or by typing the keyboard interrupt character that has been defined for your system.
When you enter the Debugger, a message is displayed that describes the kind of condition that has been signaled and the options that you can use to proceed. You can continue the current evaluation, return to a previous evaluation, enter new forms to be evaluated, or return to the top level of Lisp.
If a new error is signaled while you are evaluating forms in the Debugger, you enter the Debugger again. Each time you enter a recursive Debugger level, you are given information about the current condition and about the available options to proceed.
This chapter describes the Debugger in detail and gives examples of how you can use Debugger commands to examine and modify your programs. If you are new to Lisp, you should read the entire chapter and try entering some of the examples.
Generated with Harlequin WebMaker