Remote debugging using lldb/Xcode

  1. Make sure that Xcode is installed on both machines. (Different versions are OK!)

  2. On the remote machine (running the executable):

    1. Start the app you want to debug
    2. Start debugserver, attach to your app, and listen for connections from the other Mac: /Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework/Versions/A/Resources/debugserver development-mac.local:16000 --attach="Photo Booth"
  3. On the development machine:

    1. Start lldb by typing lldb
    2. Connect to the debug server: process connect connect://test-mac.local:16000

On the test machine, you should now see the message Waiting for debugger instructions for process 0. After a short while, the (lldb) prompt should appear on your development machine, and you can start debugging as normal.

Unfortunatly, I'm not sure how to connect from Xcode.


Please give feedback for Apple to update their documentation here

In the mean time, I'm getting more milage using hopperapp with app disassembly. http://hopperapp.com/ There's a free trial - and it has a remote debugger available.