Product Documentation
Cadence SKILL Development Reference
Product Version IC23.1, June 2023

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

x_variables

Number of local variables on the stack to print, starting from the top. Defaults to printing all local variables on the stack.

Value Returned

nil

Always returns nil.

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

Debug Functions

tracev

where


Return to top
 ⠀
X