dump
dump( [x_variables] ) =>nil
Description
Prints the current value of all the local variables on the stack. SKILL++ variables are not displayed by this function. For SKILL++ use where to see the lexical bindings on the stack.
dump is usually called from within the break or error handler.
Arguments
|
Number of local variables on the stack to print, starting from the top. Defaults to printing all local variables on the stack. |
Value Returned
Examples
Suppose /tmp/color.il defines function initColor:
(defun initColor (object)
(let ((colorList '(red green yellow)) color)
(setq color (concat (get object 'color)))
(if (memq color colorList)
(printf "color %s initialized" (get object 'name)))
])
)
Try this file in the debugger:
installDebugger
=> t
1> load "/tmp/color.il"
=> t
1> (putprop 'object1 "green" 'color)
=> "green"
1> breakpt(initColor (entry (null object)) concat) => concat(initColor)
1> (initColor 'object1)
*** Error in routine fprintf/sprintf:
Message: *Error* fprintf/sprintf: format spec. incompatible
with data
Debug 2> dump
colorList = (red green yellow)
color = green
object = object1
nil
Related Topics
Return to top