Hi Brad, On Thu, Jan 17, 2002 at 11:40:58AM -0800, brad lafountain wrote : > I don't know a good way of debug my extension on the linux platform.. > > It doens't crash on windows but it crashes on linux.. Can someone > give me some insite how they debug their php extensions. The crash is > reproducable but it isn't consistant. It crashes ever ? times.
Make sure you compiled PHP with --enable-debug. If you link your extensi0on statically, everything is fine. If you link it dynamically (e.g. brad.so) it happens most of the time that the ext. does not get compiled with debug symbols on. I use a gcc shell wrapper script so gcc -g and whatever params fit are passed. Afterwards, you can either use gdb or DDD to debug your beast. - Markus -- Please always Cc to me when replying to me on the lists. -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]