Axxon PSIM officially supports Microsoft Visual Studio 2005 debugger.

Axxon PSIM allows using third-party debuggers for processing JScript scripts. These programs may have the functionality that is not included in the Editor-Debugger utility, for example, step-by-step script execution, watching script variables during script execution, and so on.

You must use third-party debuggers with caution, as they don't provide full compatibility with Axxon PSIM. The use of third-party debuggers may lead to failure of Axxon PSIM.

We strongly recommend introducing the breakpoint in the script when using third-party debuggers. To insert the breakpoint, add the debugger; command to the script. The script execution will pause at the place specified by the debugger; command, and the debugger will start automatically.

In programming, a breakpoint is a deliberate interruption of program execution at which a debugger call is made.

When you use a third-party debugger, scripts can be started with test events only.

To start the script using a third-party debugger, do the following:

  1. Create a script and add the debugger; command to it.
  2. Create a test event to run the script.
  3. In the Debug and edit menu, select Test run in third-party debugger.
  4. The Just-In-Time Debugging window will open. Select one of the debuggers installed on the computer.
  5. Click Yes to confirm the selection.
  6. In case of a successful syntax check (no errors found before the “debugger;” line), the third-party debugger will start. The script will pause at the breakpoint.

Example. A script with the breakpoint after Macro 1 starts.

 if (Event.SourceType== "MACRO" && Event.SourceId=="1" && Event.Action == "RUN"); //start Macro 1
{
debugger; // breakpoint
DebugLogString ("Hello world");
}