Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

xcode4

People also ask

How do I Debug in Xcode console?

When you run an application in Xcode, the debugger is automatically started and attached to the process of the application. Click the Run button in the top left or press Command + R. From the moment the application is up and running, we can start inspecting the process and, if necessary, debug it.

How do I view Xcode logs?

In the Xcode menu hit Run - Console. This is where NSLog / print / printf etc statements output. The key command is Command + Shift + R.


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).

    Screenshot 1

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

Screenshot 2

  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.

Screenshot 3

Screenshot 4


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.


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

enter image description here

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

And shortcut key for this is command+shift+y


For me, the answer is to 'activate console'

Go to view -> Debug Area -> Activate Console


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.