Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Debug script without XDEBUG_SESSION_START parameter

Tags:

php

xdebug

I am debugging a web service in PHP and there is no facility for adding the XDEBUG_SESSION_START to the single buggy remote server that has issues that don't happen in my test servers. I do know ahead of time before the server in question makes its GET request to the web service. Is there any way to have Xdebug run for the next request, even if the XDEBUG_SESSION_START parameter is not sent?

like image 873
dotancohen Avatar asked Oct 14 '25 18:10

dotancohen


1 Answers

The solution is to add xdebug.remote_autostart=1 to /etc/php5/conf.d/20-xdebug.ini and restart Apache with sudo service apache2 restart.

like image 174
dotancohen Avatar answered Oct 17 '25 07:10

dotancohen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!