Forum Discussion

Steve_Francis's avatar
11 years ago

Debugging of Scripts (powershell)

Generally, you set the collector to Trace log level for the script collector.rnUnder Settings...Collectors. Click the tool icon for the collector in question, and Set Log Levels. Set Collector.Script component to Trace. rnYou can then tail the collector log file (logs/wrapper.log), or use !tlist and !tdetail from the debug window.rnThe log file should contain the raw script output.

  • Hello All.

    Was hoping to open up discussion on how to debug a powershell script or any other script for that matter. Basically, I was hoping to be able to see the output of the script that LM see\'s. In my case I have created a powershell script that reports back a list of data in the following format:

    DB1=1

    DB2=3

    DB3=5

    In theory I could create a monitor that is a key-valued pair. However for some reason it\'s not working. It would be nice to be able to see what LM is seeing to see if the format in powershell is different then what LM is seeing as it runs the script.