Access static Method in GDB
Posted
by
Besi
on Stack Overflow
See other posts from Stack Overflow
or by Besi
Published on 2011-11-21T12:59:37Z
Indexed on
2011/11/22
1:51 UTC
Read the original article
Hit count: 176
I recently discovered the GDB in Xcode which makes up for some functionality which IMHO seems to be lacking in Xcode.
So I can do the following in GDB:
(gdb) po [LoginManager sharedSession].loginToken
20D52FE9-3573-437E-9A65-846572B63726
However, I have another Service class, which is currently not loaded so I get the following error:
(gdb) po [SessionService displaySessionInfoForToken:@"XXX"]
No symbol "SessionService" in current context.
I don't understand why the LoginManager
can be loaded but not the SessionService
.
© Stack Overflow or respective owner