Natural for Visual Studio Code 1.2.1 | Debugging the Natural Application | Setting Data Breakpoints | Adding a Hit Condition
 
Adding a Hit Condition
You can add a hit condition to a data breakpoint. Hit counts allow you to ignore a certain number of hits and control how many hits are allowed before the program continues without halting.
Right-click the entry in the Breakpoint view to display the following context menu:
Context menu with Edit Hit Count command
Choose the Edit Hit Count command and add a hit condition. For example:
Hit condition
In this example, the first five hits are ignored and then program execution is halting two times.
Hit Condition Syntax
Syntax
Description
<number>
The number of hits to ignore before triggering the logpoint or breakpoint.
[ "," <number> ]
Optional. The number of hits to execute after the initial ignore count.
<number> [ "," <number> ]
Full syntax. The first number is the ignore count, the second (optional) is the execute count.