To test and debug your Apple event code you can generally use the same techniques and tools you use with any code. For example, Xcode contains a full-featured source-level debugger that lets you set breakpoints and step through your code line by line. For C, C++, and Objective-C code, Xcode uses GDB, the debugger from the GNU Project. You can use Xcode’s graphical interface to GDB or you can enter commands directly into the GDB console. For more information, see “Debugging” in Xcode Help and Debugging With GDB.
The remainder of this chapter provides tips that are specific to debugging code that works with Apple events.
Determining If an Application Is Receiving Apple Events
Script Editor is an Apple Event Test Tool
Examining Apple Events
Last updated: 2007-10-31