How to get the output of an OS X application on the console, or to a file?

前端 未结 4 1529
离开以前
离开以前 2020-12-04 14:44

I am writing a Cocoa application with Mono embedded. I want to run and see my debug output in Terminal. On the Cocoa side I am using NSLog(), and on the Mono s

4条回答
  •  一整个雨季
    2020-12-04 14:56

    Open Console.app in /Applications/Utilities. All NSLog output will be printed in the System log.

    Or, if you run it from within Xcode, all of the output will be printed in the Debug console.

    I'm not on my Mac right now and don't recall the command sequence or the menu the Debug Console is in, possibly the Build menu?

提交回复
热议问题