Remote debugging using lldb/Xcode
Make sure that Xcode is installed on both machines. (Different versions are OK!)
On the remote machine (running the executable):
- Start the app you want to debug
- 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"
On the development machine:
- Start lldb by typing
lldb
- Connect to the debug server:
process connect connect://test-mac.local:16000
- Start lldb by typing
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.