Tutorial
Practice
Bookmark
Prev
Next
 
 
     
 

The built-in AXIS Script Debugger allows you to check the execution of your formulae at run-time. Learn more about VB Script Language here.

To enable the Debugger, go to the System Parameters Dialog ("File"->"Parameters"->"System Parameters..." menu) and check the "Enable debugger for AXIS Script" checkbox (for interactive runs and/or for batch runs) on the "Formula" tab. You also need to define at least one breakpoint at the line you wish to stop. There are 3 ways to set/remove a breakpoint at the current cursor position:

  • from the main menu "Axis Script / Toggle breakpoint"
  • from the right-click popup menu "Toggle breakpoint"
  • press a short-cut key "F9"

Once a breakpoint has been set, the line will be marked by a red dot in the selection margin (grey strip at the left edge of the editor panel).

You can also clear all breakpoints from the main menu "Axis Script / Clear all breakpoints".

When you have finished editing, the Script Editor will automatically check the syntax of your script by doing test compilation before it is saved. If it finds a syntax error, it will give you the detailed information (including error message, a piece of text and the line number, etc.). You can also compile the script from "Axis Script / Compile" menu. This compilation performs syntax checking only and all scripts will be re-compiled at run-time.

Once the script has been compiled successfully, all breakpoints in this script will be validated and invalid ones will be removed silently. Valid breakpoints will be saved along with the script and will take effect when this script is executed next time.

Once the breakpoints are created, you can start executing the formula normally (e.g., run a Cell). The Cell run will be stopped when the execution of the formula reaches the first breakpoint and the Debugger window will open. The next executed statement (current statement) will be indicated by a yellow arrow in the selection margin.

To see the value of a variable, hover the mouse cursor over the variable in the text panel. The current value of the variable will be shown in the tool tip. 

Please click on the Tutorial link above to see a demonstration

 

   
Prev
Next