《通链参考手册》


Function INVOKE-DEBUGGER

●语法设定:

invoke-debugger condition =>|

●参数和值:

condition---a condition object.

●详情:

invoke-debugger attempts to enter the debugger with condition.

If *debugger-hook* is not nil, it should be a function (or the name of a function) to be called prior to entry to the standard debugger. The function is called with *debugger-hook* bound to nil, and the function must accept two arguments: the condition and the value of *debugger-hook* prior to binding it to nil. If the function returns normally, the standard debugger is entered.

The standard debugger never directly returns. Return can occur only by a non-local transfer of control, such as the use of a restart function.

●例子:

 (ignore-errors ;Normally, this would suppress debugger entry
   (handler-bind ((error #'invoke-debugger)) ;But this forces debugger entry
     (error "Foo.")))
Debug: Foo.
To continue, type :CONTINUE followed by an option number:
 1: Return to Lisp Toplevel.
Debug>

●副作用:

*debugger-hook* is bound to nil, program execution is discontinued, and the debugger is entered.

●受制于:

*debug-io* and *debugger-hook*.

●例外情况: 无。

●更多信息:

error, break

●说明: 无。


◇首页 § ◎章节目录 § □内容索引 § ○符号索引 § △术语表 § ※设计草案