Skip to content

Instantly share code, notes, and snippets.

@ricardopereira
Forked from krzysztofzablocki/gist:4396302
Created October 15, 2015 09:17
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 ricardopereira/a2e574f7789b82a91ea3 to your computer and use it in GitHub Desktop.
Save ricardopereira/a2e574f7789b82a91ea3 to your computer and use it in GitHub Desktop.
Set symbol breakpoint on objc_msgSend then setup this debug command to log all methods called in iOS Simulator. If you want to do device debugging change esp+4 register to r0, esp+8 to r1 Found long ago somewhere on stackoverflow.
expr -- (void)printf("[%s, %s]\n",(char *) object_getClassName(*(long*)($esp+4)), (char *) *(long *)($esp+8) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment