Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode debugger doesn't print object also not showing any error message

I am using Xcode 5.1.1, my debugger accept object when i try to print them but doesn't print details of it. Also it is not showing any error message.

I have checked all answer listed for one similar question here but didn't found any of such error in my xcode setting.

Accepting object

After adding an exception breakpoint

Can some one please tell me where else i need to check?

like image 528
Ajit Satarkar Avatar asked Aug 27 '14 06:08

Ajit Satarkar


People also ask

Where is print output in Xcode?

Press ⇧⌘Y or choose View > Debug Area > Show Debug Area to show the console output (or ⇧⌘C / Activate Console). Usually, this window will open automatically when your program produces output (this is controlled by the Behaviors section of Xcode's Preferences).

How do I enable debug mode in Xcode?

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.


2 Answers

After checking all the buttons in debugger window, found there is button at bottom (default selected "All Output") which popup drop-down when we click on it.

This was set to 'Target Output' which causing the problem. Select option either 'All Output' or 'Debugger Output', then we can get values of variable/object when we say po variable/object.

Solution

like image 138
Ajit Satarkar Avatar answered Oct 05 '22 14:10

Ajit Satarkar


For me the issue was the filter. If you try to use po variable when the filter is on, the response may be filtered out and not show.

like image 29
aneurinc Avatar answered Oct 05 '22 12:10

aneurinc