$cbreak(E)
Version information
Introduced in version v0.2
This macro is considered stable
About
The $cbreak macro is used to place conditional breakpoints in code. When the expression E evaluates to true then the breakpoint trips, otherwise nothing will happen.
Notes
Note
Unlike $break breakpoints, these breakpoints are enabled by default
Required environment
- This macro requires the debug server to have been initialized before being called.
- This macro requires the current thread to be supervised with $ntask or
V5Dbg_Init - This macro requires the current function to be debuggable
Example
- This breakpoint will be enabled by default and will only trip if the value of
iis divisible by4with no remainder