** delete_watchpoint(int num) |
** modify_watchpoint(int num, int flags) |
The watchpoint mask might change often; the Run-From-Line condition is derived as ' execute commands after watchpoint 0 has been found true for the first time'. |
;py,this.set_watchpoint(1,0) # disable wp 1 |
Update: the easiest method to deal with it: in the action, raise InterpreterException?,"message". In the calling code, detect that and abort the interpreter with that message.Example for a complex start conditionThe watchpoint in the following example reads as: * start executing when in Oword subroutine 'mysub' AND * the named parameter '#<val>' exists AND * #<val> is < 2 ;load and point on the next line in Axis, then RFL - this will override the default run-from-line watchpoint ;py,this.set_watchpoint(0,"this.sub_context[this.call_level].subname == 'mysub' and this.params.exists('val') and this.params['val'] < 3") o<mysub> sub o200 if [#1 GT 0] (debug, before val assignment) #<val> = #1 (debug,val=#<val>) o<mysub> call [#1 - 1] o200 endif o<mysub> endsub o<mysub> call [5] m2 |
|
Update: this doesnt work - there seems to be an assumption about increasing motion id's, maybe in the tp. |