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

后端 未结 13 2211
甜味超标
甜味超标 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:08

    On an 12.1 Xcode version you can do either:

    Option 1: View > Debug Area > Activate Console

    Option 2: Shift + cmd + c (to activate console)

    Option 3: (if your console is already activated) Shift + cmd + y

    Here is a picture for you:

    picture that shows menus and options

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

    For me, the answer is to 'activate console'

    Go to view -> Debug Area -> Activate Console

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

    If you don't have anything displaying in the logs, the log view will unselect itself and not display itself. You could add a printf and verify this.

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

    I had the same issue. Below are fix for this :

    1. You console may be hidden. Press Show the console button present in right corner (blue coloured when console is open).

    2. You may be displaying Debugger or Target output. Select All Output (Checkmark is displayed when selected).

    1. a. Open Xcode preference (shortcut: cmd + ,).

      b. Select Behaviours tab from pop-up.

      c. From the Build sections select Succeeds.

      d. Enable Show debugger with Current Views.

      e. Select Console View from the drop-down list.

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

    For me, "Debug Executable" in Scheme Settings (Product-->Scheme-->Edit Scheme: Run) had been unchecked.

    enter image description here

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

    if you want to display Debug area always, then follow these steps:

    • Goto XCode > Preferences > Behaviors > Succeeds >
    • Check checkbox of Show tab named
    • Type DEBUG in the textbox next to Show tab named
    • select separate window in dropdown next to Textbox
    • Now click checkbox before debugger with and select Console View in the dropdown

    Now when you will run our app, console window will popout itself.

    And shortcut key for this is command+shift+y

    0 讨论(0)
提交回复
热议问题