In addition to line-based breakpoints (see section “Program Window”), breakpoints can also be set on variables. Right-click a variable name and select Set/Clear Breakpoint on Variable. Variables with breakpoints are marked with next to their name.
Once a breakpoint has been set on a variable, the program execution stops whenever its value changes. A change of value is detected in the same way the HDevelop operation != works (see section “Comparison Operations”):
tuple := [1,2,3] tuple[1] := 2.0 // 2 == 2.0
Using clear_obj does not trigger a variable breakpoint. Use dev_clear_obj instead.
When a breakpoint on a variable triggers, the program execution stops and HDevelop highlights the corresponding variable in the variable window. If the variable is not currently displayed in the selected tab of the variable window, HDevelop switches to the tab Auto (see below).
Information about the event is displayed in the status bar, for example, HDevelop displays both the old and the new value of a tuple.