Click here to return to the KiXtart HelpDesk main page...

Debug mode

As of version 3.48, KiXtart provides a simple debug mode. In debug mode, you can step through a script statement by statement, and you can also display the value of a variable or macro. To run a script in debug mode, specify ‘/d’ on the command line.

In debug mode, the top line of the screen is used to display the current line in the script starting at the current statement. Optionally, the second line of the screen is used to display the value of a specific variable or macro.

Whilst debugging, the following keys are available to control script execution : 

F5 Run (deactivates debug mode, runs rest of script)
F8, <Space>, <Enter> Step into (run a single statement, follow thread into subroutines and secondary scripts)
F10 Step over (run a single statement, executes, but skips over subroutines and secondary scripts as far as the debugger is concerned)
<Esc>, ‘q’ Exit

Additionally, you can query the value of a variable or macro simply by typing its name and pressing <Enter>.