Hit conditional breakpoint - zero-plusplus/vscode-autohotkey-debug GitHub Wiki

hit-conditional-breakpoint

This is almost a subset of a Conditional breakpoint that stops the script only when it hits a specified number of hits.

Therefore, it is recommended to learn about Conditional breakpoint first.

The following is equivalent to conditional breakpoints using meta-variables.

= 10     ; same as {hitCount} = 10
== 10    ; same meaning as above
< 10     ; same as {hitCount} < 10
<= 10    ; same as {hitCount} <= 10
> 10     ; same as {hitCount} > 10
>= 10    ; same as {hitCount} >= 10

% operator

This is an operator that can only be used at this breakpoint to determine if the number is a multiple of the specified number.

% 10     ; 10, 20, 30... to stop the script.