String @exp @ at breakpoint. A log message has only one first character

I need to trace my program. I made a symbolic breakpoint:

enter image description here

Full line:

"Class name is @*(char*)object_getClassName(*(long*)($esp+4))@"

But instead of the full class name, I only have the first character in the ie console:

"Class name is 'U'"

Why? Do you have any ideas?

IDE: Xcode 4.6.2. LLDB.

+1
source share
1 answer

In the screenshot it seems that in front (char *)of you there is an additional one *. This splits the string into the first character.

UPDATE: Journal Post

Class name is @(char*)object_getClassName(*(long*)($esp+4))@

, , lldb C. fooobar.com/questions/2106566/...:

  • " " " ",
  • expr -- (void)printf("Class name is %s\n",(char *) object_getClassName(*(long*)($esp+4)))
    
+2

All Articles