I wrote a debug macro that prints to the console the passed-in string whenever the global kDebug flag == YES.
kDebug
YES
I need to print out the name
Take a look at Dtrace. Instruments provides a GUI interface. You can, say, provide a regex to match all the methods you want to log.