VSCode php xdebug connected but not debugging? [Fixed]

Php

Video is ready, Click Here to View ×


1) setup php.ini
[xdebug]
zend_extension=/usr/lib/php5/20131226/xdebug.so
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_connect_back = 1
xdebug.remote_log=/var/log/apache2/xdebug.log

2) open VSCode to test xDebug, if it doesn’t work, check the xdebug.remote_log log file. You should see log like this:

Log opened at 2017-07-28 18:21:10
I: Checking remote connect back address.
I: Checking header ‘HTTP_X_FORWARDED_FOR’.
I: Checking header ‘REMOTE_ADDR’.
I: Remote address…

1 thought on “VSCode php xdebug connected but not debugging? [Fixed]

Leave a Reply

Your email address will not be published. Required fields are marked *