9

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?

Community
  • 1
  • 1
Ajit Satarkar
  • 717
  • 6
  • 20
  • Try adding an exception breakpoint if you want more descriptive error messages. – rebello95 Aug 27 '14 at 06:37
  • adding an exception breakpoint doesn't give any error message it gives values in variable (see my edited question) but this is not best solution when i have array object of dictionaries in it.. – Ajit Satarkar Aug 27 '14 at 06:46
  • 1
    You're not being very clear with what you want to accomplish. If you want logs of items, you can log using `NSLog`. You added a normal breakpoint, not an [exception breakpoint](http://stackoverflow.com/questions/17802662/exception-breakpoint-in-xcode). When a breakpoint is triggered, mouse over the object like you are in the second screenshot. Then, click the tiny triangle to the left (of`@kunal`, in your case) to see more info on it. – rebello95 Aug 27 '14 at 06:50
  • well to be specific I need to know why xcode is not printing values of variable when I say po varible – Ajit Satarkar Aug 27 '14 at 06:56
  • I have added exception break point the way you mentioned in comment but still xcode is not printing details of variable/object when I say po varible/object – Ajit Satarkar Aug 27 '14 at 07:14
  • I'm not sure about that, sorry. – rebello95 Aug 27 '14 at 07:14

2 Answers2

17

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

Ajit Satarkar
  • 717
  • 6
  • 20
  • 1
    Thanks! I switched to `Target Output` by accident and were thinking that nothing is printed because of some bugs. – DanSkeel Dec 06 '18 at 08:52
5

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.

aneurinc
  • 1,238
  • 12
  • 20