Which platform are you on? Linux? Look for 'How to generate a backtrace' on the php.net website, as David posted.
Windows? Limit the number of active server processes to 1, then using MSDEV, attach to the running apache process. (It'll help if both apache and your extension are built in debug mode.) Then make it crash. Debug as you would any windows App. Joseph > -----Original Message----- > From: Ron Lange [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 16, 2002 9:47 AM > To: [EMAIL PROTECTED] > Subject: [PHP-DEV] how to debug a php extension... > > > hi, > in which way I could debug my extension (builtin, apachemodule)? > unfortunately I get segmentation faults of the forked apache > proc, and I can > only guess where it is. It's in a particular place, where I set > up a socket > and two fds. I don't use php_streams. Any hints? > Regards > Ron > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php