From OpenSCADAWiki
Basic approaches to custom debugging include:
- Creating external attributes to look at intermediate values and monitor the current execution context.
- Creating debugging messages, also for review of intermediate values and follow-up monitoring.