I’ve recently been developing a couple of externals for Max/MSP. Initially I became very frustrated with trying to run the application inside a debugger because the PACE protection kept terminating the process. It eventually occurred to me to use the Max/MSP ‘runtime version’, which is not copy protected. This worked fine, and I was able to debug externals in the usual way using gdb:
gdb /Applications/Audio/MaxMSP\ 4.6.3/MaxMSP\ Runtime.app/Contents/MacOS/MaxMSP Runtime
For more detailed use of gdb for debugging externals see this guide.