Debugging Executions

TestStand 2016 Help

Edition Date: August 2016

Part Number: 370052R-01

»View Product Info
Download Help (Windows Only)

Use the commands in the Debug menu to suspend executions, control how TestStand single-steps within executions, set breakpoints, and stop executions prematurely. Because the Allow Break While in Code Modules option on the Execution tab of the Station Options dialog box is enabled by default, executions suspend even if some threads are executing code inside a code module. Using the Thread.ExternallySuspended property results in the same behavior.

Use the following panes in the Execution window to gather information when you single-step through an execution:

  • Threads and Call Stack panes—The Threads pane displays the threads running in the execution and selects the active thread to view. The Call Stack pane displays the sequence invocations for the active thread and selects the active sequence invocation to view. TestStand updates these panes while tracing.
  • Variables pane—Displays the sequence context for the sequence invocation currently selected on the Call Stack pane when executions suspend. Use the Variables pane to examine and modify the values of the variables and properties the sequence context contains.
  • Watch View pane—Displays the values of the watch expressions you enter. The TestStand Sequence Editor updates the values on the Watch View pane when execution suspends at a breakpoint. When you enable tracing, the sequence editor also updates the values after executing each step and highlights values that change in red.
    Caution Caution  Watch View pane expressions that modify the structure of objects, such as deleting subproperties or changing the size of an array, can prevent the Variables pane from refreshing correctly or can cause the Variables pane to generate errors.
  • Output pane—Displays generic messages, warnings, and error messages. By default, the Output pane is empty. Use the OutputMessage expression function or the Engine.NewOutputMessage method and the OutputMessage.Post method to generate the messages you want to display. Each message specifies a severity and a timestamp. The message can also specify an icon, a category, and additional execution information. Double-click a message or right-click a message and select Goto Location In»Step from the context menu to go to the step that generates the message. By default, the sequence editor generates output messages for any information a source code control provider generates.
Note Note  The Watch View and Output panes are available in the sequence editor but not in the TestStand User Interfaces.

WAS THIS ARTICLE HELPFUL?

Not Helpful