Title: How to inspect a variable in XCODE?
Tags: iphone
Question: Is there any command using which we can inspect a object in command line while app is running in DEBUG mode. I do not want to put description message in the code.
Comment: Do you want a command line command for the debug console?  Or is hovering with the mouse cursor in the Debugger GUI window at a breakpoint OK?

Here is the accepted answer: Try these resources. one two
(gdb) p varName
Comment for this answer: Try `(gdb) p (float)[objName varFloat]`  I don't think you can use 'dot' syntax.  the other option is to do `(gdb) p (float)objName->_privateVar` but I don't think that'll work
Comment for this answer: Thank you, This is what I was looking for.
Comment for this answer: Here it is printing the memory address of objects like dictionary, array etc. I want to see what is the data they are holding inside. Any clue on this?

Here is another answer: Yes sure. If you are debuging, breakpoints are automatically set to on. Just set a breakpoint to the line in which the variable is. The program stops as soon it reaches the line with the breakpoint. Just hold the cursor over the variable and all important data is displayed. I do it also that way all the time. ;-)

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2010:00:09/23/10', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<iphone>', 'Title': 'How to inspect a variable in XCODE?', 'ViewCount': 1653, 'id': 3781843, 'user_AboutMe': '', 'user_AccountId': 182954.0, 'user_DisplayName': 'Abhinav', 'user_Reputation': 37300.0, 'user_Views': 1969.0, 'user_id': 418029.0}}