Debugger

(System Library)

Description: Starts the VTScada Debugger utility. (Not the Source Debugger)
Returns: Nothing
Usage: Script or steady state.
Function Groups: Compilation and On-Line Modifications
Related to:  
Threaded: Yes
Format: System.Debugger([Status, ViewModule, TxtAppName, MtSdView, Restrict])
Parameters:  
Status   
Optional. Any numeric expression giving the enabled status of the window in which the debugger is displayed, as follows. The default value is 1 - Enabled.

Status

Meaning

0

Disabled

1

Enabled

2

Enabled, bring to front

3

Enabled, reload ViewModule, then bring to front

ViewModule   
Optional. An object value selecting the current module or object to debug. No default value.
TxtAppName   
Optional. Any text expression to be appended to the title bar of the debugger window. No default value.
MtSdView   
Optional. Any logical expression. If true (non-0) the module tree and state diagram buttons are displayed on the debugger, if false (0), neither will be displayed. The default is false.
Restrict   
Optional. Any logical expression. If true (non-0) VTScada system windows may not be selected for debugging, if false (0) any window may be selected by the debugger, including itself. The default is true.
Comments:

The utility that starts is the older Debugger, not the newer Source Debugger. It does not need to be loaded into the VAM in order to run when called by this function.

This module is a member of the System Library, and must therefore be prefaced by \System. as shown in the "Format" section.

If your application predates version 11.2, use the backslash notation rather than dot: \System\

Example:

  System.Debugger(1, Invalid, Invalid, 0, FALSE);