Enabling Script Debugging

The default settings on the MOM Management Server and agents do not support attaching a debugger to running MOM scripts. You must enable debugging through the Windows registry.

For scripts that run on agent computers, enable debugging on each agent computer you are debugging. If a script is configured to run on the Management Server, enable debugging on the Management Server computer.

To turn debugging on and specify which scripts you want to debug:

  1. Run Windows Registry Editor (Regedit.exe).
  2. Browse to the HKEY_LOCAL_MACHINE\SOFTWARE\Mission Critical Software\OnePoint registry key.
  3. Change the value of the DebugEnabledScripts entry to specify the name of the script or scripts you want to debug. Wildcard expressions are supported for this setting. If DebugEnabledScripts does not already exist, create a new String entry for it.
  4. To enable debugging, change the value of the EnableActiveDebugging entry to 1. If EnableActiveDebugging does not already exist, create a new DWORD entry for it.

To disable debugging, change EnableActiveDebugging to 0.

Note Note   

Disable debugging after you have finished troubleshooting the problem. Enabling debugging will decrease performance, and other users could attach debuggers to the MOMHost.exe process and lock threads for extended periods of time.

See Also

Attaching the Debugger to a Script