Debugging Tool Snippets

03 April, 2011   

Often when working on scripts alert boxes are placed inside loops as a debugging tool. You can sometimes end up with hundreds of alert boxes and no way to stop them. This script placed at the start of your code will give you an option to disable the alert boxes after a pre-determined number set by you.

Here are example test calling a GUI-App through bgExec

An example for Scripted Helper object plugin

Open up a text editor, copy & paste the code below. Save the file as: "" and exit the editor.

Print variables with file and line number for debugging source code

Displays the text message associated with the numerical error codes returned by the GetLastError api function.