Next: , Previous: Package FL.MACROS, Up: Reference manual


6.3 Package FL.DEBUG

This package adds debugging tools to Femlisp. This is a slightly modified version of the debugging suite proposed in (Norvig 1992).

— Function: DBG ID FORMAT-STRING &REST ARGS

When debugging on id print out the arguments args using the format in format-string.

— Function: DBG-INDENT ID INDENT FORMAT-STRING &REST ARGS

When debugging id, print out the arguments args using the format in format-string with indentation given by indent.

— Function: DBG-OFF &REST IDS

Stop debugging on the passed symbols. With no arguments, stop debugging altogether.

— Function: DBG-ON &REST IDS

Register ids for dbg.

— Function: DBG-P ID

Returns T if id is in the debug list, NIL otherwise.

— Macro: DBG-WHEN ID &BODY BODY

Perform a check only if debugging id.