Running the script in the debugger can make it a lot easier to
identify script errors. The
debugger makes it possible to monitor every script statement and examine the variable
values while the script is executed.
You launch the debugger by clicking the Debug button in the top menu of the Edit Script window.
The script is displayed in the window in the upper half of the debugger.
The progress of the script execution is marked with a yellow bar. Break points can be inserted by clicking
on the row numbers and removed by clicking a second time. Remove all breakpoints
by clicking the Clear button.
When a breakpoint is encountered, script execution is halted until instructed
The statement being currently executed is displayed in the window in
Status codes and any script errors are displayed in the window to the
bottom, left. This is essentially the same information that is displayed
in the Script Execution Progress
window when the script is run outside the debugger.
The right bottom window displays all script variables and their respective values. Variables that have changed are colored red.
Breakpoints that have been set in the script window to the right can be cleared. A breakpoint is shown as a red circle.
- Clear: Clears all the breakpoints.
This group contains settings that determine how the script is run in the Debugger.
- Run: This is the normal script execution. The script
will progress to the end or until a breakpoint is encountered.
- Animate: The script runs as above, but with a short
pause after each statement. This way it is possible to monitor the script execution
- Step: This executes one script statement at a time.
|| Enter a number in the spinner box below. The number entered is the
maximum number of accepted records at each load
and select statement. This is
a very useful way to limit the execution time when the script is tested
with live data.
||Opens the QlikView help.
||Closes the Debugger, but keeps the data loaded so far.
||Aborts the script execution and discards all data loaded.
Opens tabs displaying external script files referenced via $(include).
- Open: Displays a dialog from which a script file can be opened. The contents of the file will be displayed under a separate tab and can be used for debugging.
- Close: Closes the current debugger script tab. The main tab cannot be closed.