I have a machine running a nginx server and PHP. I want to debug the PHP source code to see if the following function is invoked when I send the nginx server a http request.
static int multipart_buffer_headers(multipart_buffer *self, zend_llist *header TSRMLS_DC) {
...
}
I believe that one option is to run php-fpm with gdb. Is there an easier, more convenient way of doing this?
That's definitely a good option. Would probably be easiest to have php-fpm only spin up one worker process, so you don't have to figure out who got the request.
If what you're trying to figure out doesn't involve any nginx/php-fpm specific behavior, it may be easier to just debug via the built in webserver.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.