Hi Apple,
Is there anybody know how to debug MIDI Plugin in
Xcode?
I found some posts in this list which says that we can
use Project Builder to debug. But as the Xcode is such a powerful IDE, I think
it’s supposed to be some way to do that.
Below is the quoting for Project Builder:
I'm new to
Mac OS X driver development. I have created a Midi
Plugin but don't know how to debug it ?
MIDI "drivers" are different from
most other drivers on Mac OS X. They are just plugins (shared libraries) which
run inside of the MIDIServer process. Normally, CoreMIDI starts the MIDIServer
the first time an app calls MIDIClientCreate(). However, you can run the
MIDIServer yourself, if you like.
In Project Builder, select your plugin target, go to the Executables tab, and
set /System/Library/Frameworks/CoreMIDIServer.framework/MIDIServer as the
executable. Then when you run or debug, the MIDIServer will run. If your plugin
is in the right place, it will get loaded by the MIDIServer, and then you can
debug it (set breakpoints in it or whatever).
Alternatively, you can 'gdb
/System/Library/Frameworks/CoreMIDIServer.framework/MIDIServer' on the command
line, or use gdb to attach to an already-running MIDIServer process. See the
gdb documentation for more help on this.
Also how
can I create .sym file for that plugin and do source level debugging ?
In Mach-O, debugging symbols are stored in the executable itself, not in a
separate file. So if you're building your plugin from Project Builder, you
don't need to do anything special--the debugging symbols will already be there.
Sincerely yours,
David Tan
Software Engineer
Dextrys Co., Ltd.