Debugging

Top  Previous  Next

To debug your scripts during execution, you can use the PrintLn function to send text to the output window.  For e.g.

 

scripting_06

 

Compilation errors are displayed in the Messages window, and a bookmark is automatically placed on the line containing the error.

 

scripting_07

 

When testing your scripts, you may not want DB Doc to automatically open any external files your script may have generated.  To do this, set the DocumentType property to dtNone in the Document settings window.

 

scripting_09