In Xcode, go to Product> Change Schema (or select an option - click the Run button on the toolbar).
On the Info tab, change the launch option to
- Wait for EXECUTABLE to start.
You need to set the appropriate breakpoint in your application:openFile: method
then launch the application manually from Finder, dropping the document file on the application icon.
To find the Show in Finder embedded executable for your .app in the Xcode Project Navigator (or CMD + 1).
The Xcode debugger should hook and break in your method.
source share