Next: , Previous: , Up: Reference manual   [Contents][Index]


7.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-OR-IDS

Returns T if id-or-ids is in the debug list, NIL otherwise. If id-or-ids is a list, then every of its elements is checked if it is in the debug list.

Macro: DBG-WHEN ID &BODY BODY

Perform a check only if debugging id.

Macro: WITH-DBG (&REST IDS) &BODY BODY

Execute body with debugging bound to ids.