How can I get the value / keys of NSDictionary objects in the debugger console?

Viewed 15512

I set a breakpoint...

if I do:

(lldb) print [self dictionary]
(NSDictionary *) $5 = 0x0945c760 1 key/value pair

but if I do:

(lldb) print [[self dictionary] allKeys]
error: no known method '-allKeys'; cast the message send to the method's return type
error: 1 errors parsing expression

Even if I try to access the key that I know is in there..

(lldb) print [[self dictionary] objectForKey:@"foobar"]
error: no known method '-objectForKey:'; cast the message send to the method's return     type
error: 1 errors parsing expression

What am I doing wrong?

5 Answers
Related