A simple debugger is available to help diagnose problem in your scripts. To use it add this to your scripts:

require’console’
require’debugger’

Then you can ‘instrument’ your code using the pause() command. After a pause() your script will enter an interactive session using the console. Type help in that to get a list of facilities available. The debugger is automatically available if your started the console directly (as above).

You can also break into a running script from the thread viewer (press Threads in the desktop menu bar to open the thread viewer), select the thread that is running your script and press the Pause button. Your script will enter an interactive debug session (Note: if your script is currently stalled waiting for a response from a form; it will not 'pause' until you create some sort of event in the form, like clicking on a field or moving a list selection).