Skip to content

Instantly share code, notes, and snippets.

@hiroshi
Created March 15, 2012 08:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hiroshi/2042998 to your computer and use it in GitHub Desktop.
Save hiroshi/2042998 to your computer and use it in GitHub Desktop.
Xcode デバッガで [NSUserDefaults standardUserDefaults] みたいなクラスメソッドを使えないで困ったとき ref: http://qiita.com/items/3197
(lldb) po [NSUserDefaults standardUserDefaults]
error: Couldn't prepare the expression for execution in the target
(lldb) po [(Class)objc_getClass("NSUserDefaults") standardUserDefaults]
(id) $17 = 0x0644e5a0 <NSUserDefaults: 0x644e5a0>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment