Debug Menu

The Debug menu in a TestStand User Interface contains the following options for editing sequences and steps:
Note Menu items marked with an asterisk ( * ) appear only in Editor Mode.
  • Toggle Breakpoint —Sets or clears the breakpoint state for the selected steps.
  • Run Mode —Sets the following run mode values for the step:
    • Force to Pass —The step does not execute. Instead, the step status is set to Passed .
    • Force to Fail —The step does not execute. Instead, the step status is set to Failed .
    • Skip —The step does not execute. Instead, the step status is set to Skipped .
    • Normal —The step executes normally.
  • Resume —Continues execution when the sequence execution is in a suspended state.
  • Step Into —Enters and suspends within a function, VI, or sequence the step calls. If the step calls a code module TestStand cannot suspend within, TestStand suspends the execution at the next step.
    Note When you step into a VI from TestStand and then select Return to Caller without executing the VI, any values you change in the controls or indicators of the suspended VI are not returned to TestStand.
  • Step Over —Executes the step to which the execution pointer points when the sequence execution is in a breakpoint state. If the step is a call to another sequence, the Step Over command executes the entire sequence and enters a breakpoint state on the step following the Sequence Call step. If the TestStand Engine encounters a breakpoint within the Sequence Call step, the Step Over command pauses at the breakpoint. If the Step Over command executes on an End step in a Pre-Step callback sequence, TestStand attempts to step into the code module.
  • Step Out —Resumes execution through the end of the current sequence and suspends/pauses on the next step in the calling sequence.
    Note When you use the Step Into, Step Over, or Step Out commands, TestStand does not suspend in Sequence callbacks or step groups where tracing is disabled unless TestStand is already suspended within the sequence.
  • Set Next Step to Cursor —TestStand starts from the selected step when you resume execution.
  • Break —Suspends the active execution after completing the execution of the current step in all threads of the execution. Because the Allow Break While in Code Modules option on the Execution tab of the Station Options dialog box is enabled by default, TestStand suspends the execution even if some threads are executing code inside a code module. Using the Thread.ExternallySuspended property in a code module results in the same behavior.
  • Terminate Execution —Terminates a running or suspended execution that is active. A running execution terminates only after completing the currently executing step in all threads of the execution. When you terminate an execution, TestStand runs the Cleanup step groups for all active sequences on the call stack.
  • Abort (no cleanup) —Aborts a running or suspended execution that is active. A running execution aborts only after completing the currently executing step in all threads of the execution. When an execution aborts, TestStand does not run any Cleanup step groups.
    Note If a code module waits for user input or does not return quickly for any other reason, the code module can use the Execution class in the TestStand API to monitor for termination or abort requests.
  • Break All —Suspends all running executions. Each execution suspends after completing the execution of the current step in all threads of the execution. If you enable the Allow Break While in Code Modules option on the Execution tab of the Station Options dialog box or a code module uses the Thread.ExternallySuspended property, TestStand suspends the executions even if some threads are executing code inside a code module.
  • Terminate All —Terminates all running executions. Each execution terminates after completing the execution of the current step in all threads of the execution.
  • Abort All (no cleanup) —Aborts all running executions. Each execution aborts after completing the execution of the current step in all threads of the execution.
  • Resume All —Continues all suspended executions.
  • Breakpoints —Launches the Edit Breakpoints/Watch Expressions dialog box, in which you can edit breakpoints and watch expressions associated with the current workspace.

See Also

Edit Breakpoints/Watch Expressions dialog box

Execution

Thread.ExternallySuspended