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

breakptMethod

breakptMethod( 
[ S_name ]
[ l_specializer [ @before | @after | @around ] ]
[ break_condition ])
where break_condition can be either
(break_tag 
g_condition 
) 
or 
(
(break_tag 
g_condition)... 
)
=> t / nil

Description

Sets breakpoint on the specified method’s defmethod declaration.

If break_condition is not specified, the breakpoint is called unconditional. The behavior of an unconditional breakpoint is as follows: if the function is read-protected or not yet defined under debugMode, the breakpoint is assumed to be set at the call point. Otherwise, it is assumed to be set at the entry point of the function.

Arguments

S_name

Specifies the name of the method on which the breakpoint needs to be set.

l_specializer

Specifies a list of specializers of the method to set breakpoint on. It can include @before, @after, and @around qualifiers.

break_tag

Valid values:

call Breaks at the calling point after evaluating all arguments in the caller's context.

entry Breaks at the entry point after binding all formal parameters in the callee's context.

exit Breaks at the exit point in the callee's context.

return Breaks at the returning point in the caller's context.

g_condition

Specifies the condition expression to be evaluated in the associated break context.

Value Returned

t

List of breakpoints set on the specified method.

nil

If the specified method is not defined.

Examples

breakptMethod()
; when specified without arguments, lists all the breakpoints
breakptMethod(S_name) 
; sets breakpoint on "S_name" function, behaves the same way as breakpt()
breakptMethod(S_name nil) 
; sets breakpoint on the "generic" method of S_name.
breakptMethod(S_name @before (classA classB)) 
; sets breakpoint on "@before" method specialized on (classA classB) of "S_name"
breakptMethod(S_name @after (classA t)) 
; sets breakpoint on "@after" method specialized on (classA t) of "S_name"

Related Topics

Debug Functions

break

breakpt

cont, continue

unbreakpt


Return to top
 ⠀
X