stepout
stepout(
[ x_steps ]
)
Description
Allows execution to proceed until the evaluator returns from the current function.
It reenters the break handler when the current function returns to its caller.
Arguments
|
Number of function call levels to return from before reentering the break handler. Defaults to 1. |
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)))
)
)
installDebugger
=> t
1> (sstatus sourceTracing t) ; Turns on sourceTracing to get line numbers
=> t
1> load "/tmp/color.il"
=> t
1> (putprop 'object1 "green" 'color)
=> "green"
=> initColor
1> (putprop 'object1 "green" 'color)
=> "green"
1> breakpt(initColor (entry (null object)) get)
=> (get initColor)
1> (initColor 'object1)
<<< Break >>> on calling get with args (object1 color)
at line 3 in file /tmp/color.il
Debug 2> stepout
<<< Break >>> on calling get with args (object1 name)
at line 5 in file /tmp/color.il
; stop at next 'get'
Related Topics
Return to top