I have a computer with apache2 and php7, I setup the php.ini to use xdebug and its ok, I can debug using an editor.
But I want to debug in another computer that has only php.
I started the server using: php -S localhost:8080
I tried to use the same php.ini, but it seems that php built-in web server can't understant the php.ini
I used the command: php -S localhost:8080 -c <<path to my php.ini>>
Here the phpinfo output from apache server:

and here the output from built-in web server:

You need to pass php.ini before -S:
php -c /path/to/php.ini -S localhost:8080
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With