Online Software Help Manual

BookmarkIndexPrint
Contents
Display Legacy Contents

Debugging

Debugging is used to troubleshoot non-working scripts or locate problems in malfunctioning scripts. This section gives a short overview of the debugging functions in the script editor.

Debugging Menu

All debugging functions are available via the Debugging Menu. The menu is also accessible by right-clicking into the script window.

Debugging functions

The main purpose of these functions is a controlled execution of a script. This includes stepwise execution, execution to a certain point and evaluation of a expressions.

  • Step Into
    Executes the current line. If the current line is a subroutine or function call, stop on the first line of that subroutine or function. If the script is not active it will be started.

  • Step Over
    Execute to the next line. If the current line is a subroutine or function call, execute that subroutine of function completely.

  • Step Out
    Leaves the current subroutine or function call.

  • Step to Cursor
    Execute until the line the cursor is on is the current line. If the script is not active it will be started.

  • Toggle Break
    Toggle the breakpoint on the current line. The script will be executed up to the breakpoint.

  • Clear All Breaks
    Clear all breakpoints.

  • Quick Watch
    Show the value of the expression under of the cursor in the immediate window.

  • Add Watch
    Add the expression under of the cursor in the watch window.

  • Browse
    Opens the Object Browser and shows the methods of the expression under the cursor.

  • Set Next
    Set the next statement to be executed. Only statements in the current subroutine/function can be selected.

  • Show Next
    Show the next statement to be executed.

Debugging window

When in debugging mode, the script window will be split horizontally to show the debugging window:

The debugging window consists of four tabbed windows which show the results of Quick Watch, Watch,  the execution stack and loaded scripts.

Debugging window options

In debugging mode the script window gives additional visual feedback to assist the debugging process:

  • The next line to be executed is highlighted in yellow and marked by a yellow arrow:

  • A breakpoint is highlighted in red an marked by a red dot:

  • An instruction that caused an error during execution will be displayed in red font. The status bar shows additional information.