Quickies

[categories] [index] [all (531)] [latest]

gdb
  1. (gdb) break setPassword:
    (gdb) break -[Person setPassword:]
    
    (gdb) po self
    <Person: 0x10010c7a0>
    (gdb) po [invocation debugDescription]
    Some day, NSInvocation will have a useful debug
    (gdb) p (char *)_cmd
    $1 = 0x10fbb "setPassword:"
    
    (gdb) frame
    (gdb) info locals
    (gdb) info (classes|selectors) [regex]
    (gdb) list +[Person string]
    (gdb) call [self setPassword:@"welcome"]
    
    (gdb) where
    #0  0x0000b4b3 in -[AppDelegate application:didFinishLaunchingWithOptions:] (...)
    #1  0x00444c89 in -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] ()
    #2  0x00446d88 in -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] ()'),