Skip to content

Instantly share code, notes, and snippets.

View feosuna1's full-sized avatar
💭
I may be slow to respond.

Enrique Osuna feosuna1

💭
I may be slow to respond.
  • Sofia, Bulgaria
  • 14:54 (UTC +02:00)
View GitHub Profile
@feosuna1
feosuna1 / gist:da605ab83b79ad76d452
Created January 2, 2016 09:47 — forked from krzysztofzablocki/gist:4396302
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) )
expr -- (void)printf("[%s %s]\n",(char *) object_getClassName(*(long*)($rdi)), (char *)($rsi))