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
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:
Then restart the apache server, set a breakpoint in your code and have PHPStorm listen for incoming debug connections.