The following sections cover additional options for running the script debugger:
From the command line, run the fscript command from /OperationsCenter_install_path/database/scripts to launch the debugger. Table 2-2 describes debug command options.
Table 2-2 Debug Commands
Command |
Result |
---|---|
fscript ‑debug |
Launches the debugger |
Fscript –debug –f scriptname.fs |
Opens a script from the /OperationsCenter_install_path/database/scripts directory in the debugger. |
The debugger can be set up to open all scripts run within the environment.
To update property files for the debugger:
For server-side script debugging, do the following:
Add the following properties to the Formula.custom.properties file:
Script.debug=true
Restart Operations Center.
Launch the Operations Center console and open the debugger. All scripts open in the debugger as they are run.
Note that only scripts run on that Operations Center server will open.
For client-side script debugging, do the following:
Add the following properties to the applet_params.xml file:
<param name="Script.debug" value="true"/>
Relaunch the Operations Center console and open the debugger. All scripts open in the debugger as they are run.
Adding a debug comment to a script can be used to automatically launch the debugger when the script executes. Be sure to remember to remove a // @debug on comment before sending the script to production. Table 2-3 lists the debug comment options.
Table 2-3 Debug Comments for Script Files
Comment Code |
Result |
---|---|
// @debug on |
The debugger launches when the script runs. |
// @debug off |
The debugger does not launch when the script runs. |