As Fizzlemizz pointed out, those are great addons for enhancing error reporting.
These expand on Blizzard's own error system that depends on the
scriptErrors CVar.
This is disabled by default and should be turned on if you're working on code.
Code:
/console scriptErrors 1