As far as I understand you, you want to have debug output on mac. How do you open your programm? If you use open in the commandline, you won't get commandline output. If you start the executable in your application bundle, everything should work as expected.