Debugging with the debugprint() statement
You can also debug scripts with debugprint() statements in your code that can be enabled when debugging. You can populate your debugprint() statements with useful values for debugging your script. Similar to a breakpoint in a regular IDE, these statements allow you to determine a value at certain point in time in your script. For example, you may have a work detail and require the value after you perform a certain calculation.
Note: This procedure also outlines how to delete debug output logs through
the Script Output window or through an archiving task.
To debug an existing script with the debugprint() statement: