4

I'm trying to debug my program, and I have a dictionary that I'm trying to inspect in the debugger; however, when I view the dictionary in the debugger, it looks like this:

Debugger

Most of the keys are listed as NSTaggedPointerString and I'm not able to see the value. Why is this and how can I get the value of the keys?

Kara
  • 6,115
  • 16
  • 50
  • 57
BlackHatSamurai
  • 23,275
  • 22
  • 95
  • 156
  • 4
    Right-click on the key and select "Print Description Of xxx". – rmaddy May 18 '16 at 16:35
  • @rmaddy that worked. If you want to make it the answer, I'll accept. – BlackHatSamurai May 18 '16 at 16:38
  • Possible duplicate of [understanding Xcode debugger var display](http://stackoverflow.com/questions/7758664/understanding-xcode-debugger-var-display) – rmaddy May 18 '16 at 16:46
  • @rmaddy has shown you how to see the value, for an idea of where this type is coming from see [Mike Ash's Tagged Pointer Strings](https://mikeash.com/pyblog/friday-qa-2015-07-31-tagged-pointer-strings.html) though by the look of it Apple may have updated the scheme. – CRD May 18 '16 at 16:53
  • I don't have the option "print description..." on my right click menu. Any other ideas? – Ryan Aug 15 '16 at 01:29

1 Answers1

0

As rmaddy said in the comment above, you can right-click on the key, or any NSTaggedPointerString in the Variables View and select "Print Description of VariableNameHere", and it will print out to the Console.

I'm just posting this as an answer to make it more obvious to people who need the answer, like me.

Community
  • 1
  • 1
NickCE
  • 409
  • 3
  • 7