In the FAQs there is now a "EL debugging (trouble shooting) guide" that I created (see below). TJ put it at the very top since finding bugs is quite often our most FAQ. It is there for those brand new to programming and for those with ideas to contribute. Also when someone completely new to programming gets MC and they obviously do not understand the commands they are using and request help with bugs we can give them this link to get them on track with these debugging methods which may be completely new to them.
The tread now has Print, FileAppend, RaiseRunTimeError, Alert, PlaySound, general methods and the Trace and Trap techniques mentioned. A zip file of code is there that you can use to insert code ready for debugging at the top of your scripts.
EL debugging (trouble shooting) guide
viewtopic.php?f=16&t=10397