I'm working with some Objective-C++ code that launches a background process from my main app. The background process has no GUI, only runs for a moment, and must be run from the main app for it to be useful. This means I can't easily attach to the background process with Xcode or run it stand-alone, so I need to rely on output to stderr.
In this scenario, where should I be looking to find the stderr output?
More information in case I'm asking the wrong question: I am using an old version of Xcode (3.2.6) for reasons related to the age of the project I'm maintaining. I'm working on exception handling/reporting code, which makes it difficult to step through the code since GDB likes to catch exceptions rather than letting my code do it. The background process is only launched when a structured exception occurs within the main app.
Excerpt of the results of the lsof command on my main app, might be relevant:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
<appname> 2788 <username> 0r CHR 3,2 0t0 311 /dev/null
<appname> 2788 <username> 1w CHR 3,2 0t473379 311 /dev/null
<appname> 2788 <username> 2w CHR 3,2 0x6d545f8 311 /dev/null