Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show the Logged Messages window in Xcode

Tags:

I'm a very new Cocoa user and running into all sorts of problems...

I'm trying to get the content of an Array and found this code to do this.

NSLog(@"array : %@",collection);

The problem is, I'm not getting any console or tracer window that shows this 'echo'

Is there another command I should use, i've tried opening all windows but I don't see the message that should show. I know the function that this call is in is executed, so the reference is right.

Thanks and sorry for these beginner questions... Using stackoverflow is way faster than reading through all the documentation apple has regarding the subject.

like image 609
xaddict Avatar asked Jan 27 '09 14:01

xaddict


2 Answers

In later versions of xcode, do shift + cmd + R.

Or go to View -> Debug Area -> Activate Console

like image 150
Andy A Avatar answered Sep 29 '22 10:09

Andy A


When Xcode runs your project, the editor changes to show a little black button with the letters "GDB" in it. Click on that to see the Debugger which has the console in it.

Good luck!

Oh, and I would read Apple's documentation. It's not that bad.

like image 21
Genericrich Avatar answered Sep 29 '22 09:09

Genericrich