Adobe Flash Player Debugger can be very useful for collecting debug information.
intended for developers who need to test and describe their APIs.
Script Debugger provides everything you need to quickly and easily author AppleScripts that work.