Pausing Execution with Breakpoints
- Updated2023-02-17
- 1 minute(s) read
Pausing Execution with Breakpoints
When looking for a problem in your code, you may have an idea of the general area where the problem exists. To help focus on this area, you can use a breakpoint to pause the VI at a specified point in the program.
When the VI reaches a breakpoint during execution, you can take the following actions:
- Single-step through execution using the single-stepping buttons.
- Check intermediate values on probes that you placed on wires prior to running the VI.
- Change values of panel controls.
- Click the Resume button to continue running to the next breakpoint or until the VI finishes running.
You can add a breakpoint to any wire or node in the code, or in a row of a text-based programming node. Add a breakpoint by right-clicking the wire, node, or row and selecting Add breakpoint.
You can add conditional logic to a breakpoint to pause execution if a condition is met. Add a condition by right clicking the breakpoint and selecting Pause on condition. Configure the conditions of the breakpoint in the Debugging pane.