breakptMethod
breakptMethod( [S_name] [l_specializer[@before|@after|@around] ] [break_condition]) wherebreak_conditioncan 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
Value Returned
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
Return to top