Xcode 4 - Debug Area no longer shows my console output (NSLog)

后端 未结 13 2212
甜味超标
甜味超标 2020-12-05 17:45

My NSLog messages no longer show up in my Debug Area. Anyone have an idea how the could have happened?

I can hit command-7 to bring of a list of logs in the left pa

相关标签:
13条回答
  • 2020-12-05 18:22

    I had an iOS universal app that would show debugger output for the iPhone version, but not for the iPad version.

    I looked into editing the schemes ( commandSHIFT, ) and the iPad scheme had a different debugger than the iPhone scheme. I changed the iPad scheme's debugger to match the iPhone's (from LLDB ---> GDB)

    enter image description here

    0 讨论(0)
  • 2020-12-05 18:24

    For Xcode 8

    I set OS_ACTIVITY_MODE to disable to hide crazy logging message in simulator. But it will also hide NSLog output on my iPhone SE device (print function in swift still works). Remove the environment variable makes NSLog work again.

    0 讨论(0)
  • 2020-12-05 18:25

    Not sure but may be you have clicked on one of the three buttons at the top right corner of the debug area that are used to either show only variables view, only the console or both.

    0 讨论(0)
  • 2020-12-05 18:26

    Make Sure that in your Debugger Area >> Debugger Bar you have Selected ALL OUTPUT

    enter image description here

    0 讨论(0)
  • 2020-12-05 18:30

    Just confirm that you have Xcode open with similar rights as you have the ownership of the files you are trying to build/run and also make sure you have same rights to the build directory. I noticed Xcode won't show any debug output if rights were mismatched. I figured this after facing so much harassment. When this happened, utilities>console was still showing logs. I used that as a workaround.

    Mine is: Xcode 4.2 Build 4D199 on OS X 10.7.2

    0 讨论(0)
  • 2020-12-05 18:34

    You have a few choices:

    • In the menus, select View -> Show Debug Area.
    • In the View selection controller in the upper right, enable the bottom view (the one in the middle).
    • If you'd like this to show automatically, go to Preferences -> Behaviors. Select "Run Starts" and enable "Show" Debug Area.
    0 讨论(0)
提交回复
热议问题