title: How does one automatically attach a debugger to a process at process start on OS X?
body: <p>I have a process that spawns a helper process.  Sometimes I need to debug start-up failures in the second process.</p>
  <p>On Windows, I would use <code>Image File Execution Options</code>, or <code>ntsd -o</code>.  However, I have no idea how to do this with GDB on OS X.</p>