on ‎2023 May 26 11:29 AM
Request clarification before answering.
Hi Welly,
debugging scripts is IMHO a big pain in the back as is debugging anything within IDM in general...
I would recommend to set the log of the according job / action tasks to a high level and remove the override.

Please note that this should be used only for a limited timeframe in order to debug something. You will find the settings in the properties of the job / action task in the tab "Logging". I unchecked "Reset log File" and increased "Max no of Error to Log in XML log:" to 25000 (default is 25).
Additionally you should set the Log Level to Debug on the Policy tab of your dispatcher.

Default is Info.
Next and most important IMHO is the "debugging" inside your script. You should use functions like uWarning to log values, parameters and return values of function calls in a way that it makes sense to you. E.g. you call internal function uProvision inside your script, so you could put it inside a uWarning like:
uWarning("myScriptName:: Par: " + Par + " uProvision: " + uProvision(...));
I hope you get the picture. Please keep in mind that you should undo your debugging once you are done in order to reduce performance issues, increasing log files and the like as well as being able to transport artifacts to production.
As a last recommendation you could think about an own warning function that logs differently depending e.g. on a constant like LOGLEVEL. That way you can leave the debug warning in your development system and do not show them in your production. This would help for permanent debug infos that you want to have in your development system but don't want to show up in production.
HTH
Regards,
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.