I have had some problems getting my PHPStorm and xDebug to work properly, so here’s my simple help on that.
Install xDebug on the linux server
If you like this content and found it helpful, please consider supporting me with a small donation.
sudo apt install php-xdebug
Install the browser plugin from Jetbrains and activate it.
The php.ini on my remote linux server. For me, this is located at /etc/php/7.0/apache2/php.ini .
At the end of the file, I inserted the following:
zend_extension=/usr/lib/php/20151012/xdebug.so xdebug.remote_enable=On xdebug.remote_port="9000" xdebug.remote_connect_back=On xdebug.remote_autostart=On xdebug.remote_log=/var/log/xebug.log
Then restart the apache server, set a breakpoint in your code and have PHPStorm listen for incoming debug connections.