Skip to content
Moritz Angermann edited this page Feb 14, 2014 · 5 revisions

debugserver

Note: If I had known about this: http://www.opensource.apple.com/source/lldb/lldb-167.2/docs/lldb-gdb-remote.txt, it would have been much easier.

To peek into the xcode/lldb - debug server communication, run the app in the debugger, stop and enable gdb-remote packet logging

(lldb) log enable gdb-remote packets

upon a second run lldb will spew out all the communication that went over the wire to the debug server.

This leads me to believe we need to send an ACK for each received message. Which for now hinders iOSConsole in certain scenarios to start an application and hang.

Sample xcode recording https://gist.github.com/angerman/6f1479c0a2c1ee05079c

Sample iOSConsole without ACK https://gist.github.com/angerman/728e68f87fc674bc7b65

Sample iOSConsole with ACK https://gist.github.com/angerman/72e488043985857e6b3f

Clone this wiki locally