Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Xcode 3 debugger not showing variable values?

Hello,

Anyone experiencing Xcode 3.1 debugger not showing variable values when in the debugger?

I have the Generate Debug Symbols on, and in a breakpoint all I see are the Types and the memory addresses of self and locals but there is nothing in the Value column.

Simple C floats and CGRects show up, but no Objective-C objects (the objects show up, but there is never a value for them).

If I debug code that has only OS X API calls (no iPhone API), then I see values.

Just want to know if there is a setting I am missing.

TIA

Mac OS X (10.5.2)

Posted on Mar 18, 2008 5:42 AM

Reply
2 replies

Mar 18, 2008 3:31 PM in response to Andrew Miner

Upon looking at it more closely, I have noticed that

- non-UIKit variables work fine.
- as you noted, all the values appear in the gdb console normally when the "print object" or "description" commands are used.

- if you use an expression or open the variable in its own window, and then toggle the Data Formatters menu item, it will show the value. At the same time, you see the value "flash" in the main debugger window and then disappear.

I would like to hear from anyone for whom this is working normally. That might indicate what is messing up my Data Formatters menu item, which seems to be where the problem is.

Xcode 3 debugger not showing variable values?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.