You can debug JavaScript files from the Sentinel Control Center with the help of the JavaScript debugger. The JavaScript debugger is a local debugger that executes scripts with respect to the machine on which the Sentinel Control Center is running. The JavaScript debugger instantiates a debug session from the Data Access Service (DAS) machine.
A JavaScript Correlation action can only be debugged after it is associated with a fired correlation rule. Therefore, a prerequisite to debugging is to create a correlation rule that is guaranteed to fire, then associate the JavaScript correlation action with that rule.
The debugger has the following controls:
Table 2 Debugger Controls
To open a JavaScript Debugger:
Click Correlation on the menu bar and select Correlation Engine Manager. Alternatively, you can click the Correlation Engine Manager button on the toolbar.
Right-click a JavaScript action associated with a correlation rule and select
. The Debug JavaScript Correlation Action window displays.The screen displays the following message: Retrieved source file, waiting for associated correlation rule to fire.
The correlation rule must fire (and a correlated event or incident must be created) before you can debug the script. After the rule fires, this text panel is replaced by a debug panel and the actual debugging session begins. The following JavaScript Correlation Action window displays.
Click
. The debugger panel displays the source code and positions the cursor on the first line of the script.You can debug the script as many times as needed (without requiring a new correlation rule to fire). After the debugger gets to the end of the script (or after you click the Stop button), click Run again.
To debug the script by using a different rule, different correlated event, or different incident, close the Debug JavaScript Correlation Action window and repeat the debugging process.
For trademark and copyright information, see Legal Notices.