I'm pretty new to Objective-C development, or indeed XCode & Mac development in general so apologies if this is a quite simple question, but I've been given a legacy product to maintain that is built in a slightly uncommon way.
Essentially the solution is split into 3 projects, one being the Primary, and the other two being Secondary. The primary project starts a process, which, in turn, starts two other processes (both of the Secondary projects).
I am trying to debug one of the Secondary projects, but I cannot properly debug it (Stepping through breakpoints etc.) as the Secondary process requires the Primary process to start it up, otherwise it automatically shuts down. I have attempted to use Xcode's 'Attach to Process via PID or Name' function, and it is partially successful, though offers limited debugging functionality (no breakpointing, limited variable inspection, etc.) which isn't quite as useful as I'd hope.
Is there a way to either debug the Secondary process with full debug functionality somehow, or a way to be able to debug one of the Secondary processes from the xcode instance debugging & running the Primary process? Or am I screwed here.
tl;dr - Full xcode debugging abilities on a process that requires another app to start (starting it by itself causes it to instantly close, it requires interaction with the primary app to function properly) - is it possible? Or is there a workaround I'm missing?