Debugging Scripts

Debugging scripts currently is not easy. PCC does not have an integrated development environment, so you have to edit scripts outside PCC; and there is not (yet) a way to inspect and manipulate a running script.

When your script dies with an error, you usually get a message on the console, or (when you started the script using [Alt-R]) a message box. In addition, a backtrace will be printed on the console. The backtrace will contain the following information:

Note that line numbers will be relative to the start of the subroutine, not the start of the file it was defined in. Scripts executed with `Load' will be shown as "`Load'ed script". Subroutines and scripts which suspended in an earlier session may be reported as "unknown".

I know this is not much, but I hope it helps at least a bit to debug your scripts.


[ << Previous | Up | Next >> ]

Stefan Reuther <Streu@gmx.de>