I would like to use GDB to step though the C++ code that makes up the php.so Apache extension. I want to see what PHP is doing while it’s running a PHP application. Preferably I would use an IDE like Netbeans or Eclipse on a LAMP system.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
mod_php(with symbols) or build your own (configure --enable-debug)MinSpareServers,MaxSpareServersandStartServersall to 1. Also make sure any timeout parameters are generously setgdbor any graphical interface togdb(such asdddor Eclipse CDT) to attach to the one and only Apache worker process. Stick a breakpoint in one of the PHP sources etc. and continue.SIGTRAPfrom PHP andgdbwill normally oblige you.Have fun!