Conditional breakpoint
You can place a conditional breakpoint in Dynamics NAV. The debugger will only stop the execution if the program flow reaches the breakpoint and the condition is true. Otherwise, the execution continues.
The condition can include any variables or fields that are currently in scope of the following types: BigInteger
, Boolean
, Code
, Decimal
, Integer
, Option
, Text
, and WideText
.
Place the cursor on the statement where you want to place the conditional breakpoint and then click on the Set/Clear Condition icon found on the ribbon bar. The following page will now open:
Write your condition using any of the supported operators: =
, <>
, <
, >
, <=
, and >=
. Then click on OK to go back to the debugger.
On the left-hand side of the statement, a red bullet with a white cross inside will appear. This indicates that the statement has a conditional breakpoint.