How to make Mac OS X CrashReporter invoke debugger?

Posted by StasM on Stack Overflow See other posts from Stack Overflow or by StasM
Published on 2010-12-25T23:52:58Z Indexed on 2010/12/25 23:54 UTC
Read the original article Hit count: 213

Filed under:
|
|
|

I have an appache module on Mac OS X that produces random crashes. I can reproduce these crashes with certain sequence of actions, and these crashes produce Crash Reporter dialog "httpd quit unexpectedly". Is there a way to cause Crash Reporter launch debugger (xcode, gdb, anything) instead of just displaying the backtrace?

I've tried running httpd under gdb with httpd -X but the crash doesn't happen then - it happens only if many httpd's are running at once, and I found no way to attach gdb to all of them at once. So I was hoping maybe I can cause CrashReporter to attach the debugger when specific process crashes - is there a way to do it?

© Stack Overflow or respective owner

Related posts about c

    Related posts about apache