How to see NSLog() from console app when using instruments

后端 未结 4 1106
遇见更好的自我
遇见更好的自我 2020-12-30 19:36

I\'m using instruments for allocations, but want to see my NSLog messages. In another post they mentioned to look inside /Applications/Utilities/Console for the messages.

4条回答
  •  误落风尘
    2020-12-30 20:06

    If you want to use the Console Application, the Xcode log can be found under the FILES section in the Log List (If not visible:Menu -> View -> Show Log List). Look for

    ~/Library/Logs/iOS Simulator/6.1/system.log
    

    This is actually just a reference to the file system. So you could to a

    tail -f ~/Library/Logs/iOS Simulator/6.1/system.log
    

    in the Terminal as well.

    Update:

    Another option in some newer versions of Xcode can be found in the Xcode 'Debug' menu. Look for the entry 'Open System Log...'.

提交回复
热议问题