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

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 sstatus( 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

u_function

Function or t to unbreakpt all functions.

Value Returned

g_result

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

break

breakpt

cont, continue

next

step

stepend

stepout


Return to top
 ⠀
X