Search code examples
c++macosdebugginglldb

How to do remote debugging of Mac desktop apps


I'm trying to debug a library that I've written in C++ using XCode 4.6.

My library works properly on my development machine, but crashes when I run it on my target machine (which uses OS 10.6.8). I'd like to try debugging the code remotely, i.e. by attaching the debugger on my dev machine to a process running on the target machine.

An SO answer says that remote debugging isn't supported by XCode 4.6, so I guess I'd need to do it from the command line.

Could anyone walk me through how to set up a remote debugging session between two Macs, assuming this is possible?


Solution

  • After many attempts at getting remote debugging to work, I eventually gave up and took Jeremy's suggestion. I installed XCode on my target machine, recompiled my library there, and then debugged it locally.