unbreakpt
unbreakpt( [u_function... |t] ) =>g_result
Description
Clears breakpoints. This is an nlambda function.
The SKILL debugger is the default break handler and is entered automatically before evaluating functions or function objects with breakpoints set. The functions breakpt and unbreakpt set and clear breakpoints on the given functions and function objects. Once you are in the break handler, you can examine the state of the program and use single stepping functions such as step, next, stepout, or continue.
We recommend that you turn debug mode on before using the break handler with ( debugMode t ) to change the prompts to tell you when you enter and exit the break handler. Another way to enter the break handler is to insert the break function directly into a SKILL function at the point desired.
Arguments
Value Returned
|
List of functions or function objects whose breakpoints have been cleared. |
Examples
This example sets a breakpoint, enters the break handler, continues, and finally clears the breakpoint.
breakpt( times ) ; Sets a breakpoint on times.
sstatus( debugMode t ) ; Make sure debug mode is on.
times(2 plus( 2 3 )) ; Invokes the break handler.
cont ; Continue executing.
unbreakpt( times ) ; Clear the breakpoint.
This example sets a breakpoint on a function object and later clears the breakpoint.
(installDebugger) ; Make sure debug mode is on
=> t
(defun test (x) (printf "test : x == %L\n" x))
=> test
(putd 'test1 (getd 'test)) ;test and test1 are the same functions
=> funobj:test
(funcall 'breakpt (getd 'test)) ;set breakpoint on the funobject
(funobj:test)
(test1 8)
<<< Break >>> on entering test
Entering new debug toplevel due to breakpoint:
Debug 2> cont
test : x == 8
=> t
(funcall 'unbreakpt (getd 'test)) ;remove breakoint
(funobj:test)
(test1 8)
test : x == 8
=> t
Related Topics
Return to top