To perform basic testing and debugging of your code, use the debug utility. For more advanced testing and debugging, use the real-time Script Debugger.