Debugger

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.

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 to proceed.

The statement being currently executed is displayed in the window in the middle.

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 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.
Debug 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 more closely.
Step
This executes one script statement at a time.
Limited Load 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.
Help Opens the QlikView help.
End Here Closes the Debugger, but keeps the data loaded so far.
Cancel Aborts the script execution and discards all data loaded.
Buffers 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.

See also:

 

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?