Debug Python Scripts in GainSeeker

The Python script debugger opens from some windows used when you choose to create custom statistics with Python or set up a Device Profile for a numeric input test.

Using the Debugging Window

The debugger is used to debug Python scripts in GainSeeker. It allows you to step through the code and place breakpoints on specific code lines.

Place a breakpoint by clicking between the line number and the start of the code line.

Click Start to step through the code. Depending on your execution mode, the debugger navigates your code using one of two methods:

When a script is halted by the debugger, a list of variables displays in the lower-right region of the window. Double-click any variable to copy the value into the clipboard.

Any information printed to the console displays in the upper-right region of the window. Many commands in the GainSeeker Python Library automatically print diagnostic information to the console. If you want to print your own diagnostic information, use the print keyword when writing Python code. For example, print "my diagnostic"  .