|LabVIEW 2015 Help|
|LabVIEW 2016 Help|
|LabVIEW 2017 Help|
|LabVIEW 2018 Help|
|LabVIEW 2019 Help|
Use the Breakpoint tool to place a breakpoint on a VI, node, or wire and pause execution at that location. When you set a breakpoint on a wire, execution pauses after data passes through the wire and the Pause button appears red. Place a breakpoint on the block diagram to pause execution after all nodes on the block diagram execute. The block diagram border appears red and blinks to reflect the placement of a breakpoint.
|Note (MathScript RT Module) You also can set a breakpoint on a line of script in a MathScript Node.|
When a VI pauses at a breakpoint, LabVIEW brings the block diagram to the front and uses a marquee to highlight the node or wire that contains the breakpoint. When you move the cursor over an existing breakpoint, the black area of the Breakpoint tool cursor appears white.
Complete the following steps to place a breakpoint on a VI, node, or wire and pause execution at that location.
|Note (MathScript RT Module) You cannot place breakpoints on certain lines of script in MathScript Nodes. For example, you cannot place a breakpoint on the line a = 1;. If you try to place a breakpoint on a line of script that does not support breakpoints, LabVIEW automatically moves the breakpoint to the next line that supports breakpoints.|
To disable a breakpoint so the VI continues executing when LabVIEW reaches the breakpoint, right-click an object with a breakpoint and select Breakpoint»Disable Breakpoint from the shortcut menu. To enable a breakpoint that you previously disabled, right-click the block diagram object and select Breakpoint»Enable Breakpoint from the shortcut menu. You also can disable or enable breakpoints individually or all at once using the Breakpoint Manager window.
Use the Breakpoint tool to click an existing breakpoint to remove it. You also can right-click a breakpoint using the Positioning tool and select Breakpoint»Clear Breakpoint from the shortcut menu to remove it. To remove all breakpoints in the VI hierarchy, select Edit»Remove Breakpoints from Hierarchy. You also can remove all breakpoints in the VI hierarchy using the Breakpoint Manager window.
You must manually remove breakpoints in dynamically called VIs or VIs referenced by the Static VI Reference function.
|Note (MathScript RT Module) To remove all breakpoints in a script in a MathScript Node, right-click inside the MathScript Node and select Clear Script Breakpoints from the shortcut menu.|
To locate and manage all breakpoints in the VI hierarchy, select View»Breakpoint Manager. Double-click any item in the listbox to highlight the breakpoint on the block diagram.
|Note You cannot view breakpoints on a password-protected block diagram if you do not know the password, but you can enable, disable, and remove breakpoints. After you run the VI, the VI will return to the state it was in before you made any changes to the breakpoints.|