Using TestStand API to Dynamically Disable Breakpoints

Updated Apr 5, 2023

Environment

Software

  • TestStand

I would like to know how to modify breakpoints programmatically in TestStand. Can this be done?

You can use the TestStand API StationOptions property BreakpointsEnabled  to enable and disable all breakpoints in a test station. You can either use the ActiveX/COM step in your sequence or an Expression.

With the ActiveX/COM step, use the following configuration:


With the Expression you can input the following: RunState.Engine.StationOptions.BreakpointsEnabled

You can set this expression to either True or False depending on whether you would like your breakpoints enabled or disabled, respectively. The breakpoints will not be deleted, but TestStand will indicate that they are disabled by turning the breakpoint icons clear.