Reputation: 1651
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?
Upvotes: 1
Views: 1098
Reputation: 1314
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.
Upvotes: 1