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.
All debugging functions are available via the Debugging Menu. The menu
is also accessible by right-clicking
into the script window.
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.
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.
Execute to the next line. If the current line is a subroutine or function
call, execute that subroutine of function completely.
Leaves the current subroutine or function call.
Execute until the line the cursor is on is the current line. If the
script is not active it will be started.
Toggle the breakpoint on the current line. The script will be executed
up to the breakpoint.
Clear all breakpoints.
Show the value of the expression under of the cursor in the immediate
Add the expression under of the cursor in the watch window.
Opens the Object Browser and shows the methods of the expression under
Set the next statement to be executed. Only statements in the current
subroutine/function can be selected.
Show the next statement to be executed.
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.
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
An instruction that caused an error during execution
will be displayed in red font. The status bar shows additional information.