Debug PHP CLI on Remote Server with Xdebug and PHPStormRemote-debugging a PHP CLI script on a LAMP virtual machine from PHPStorm: server path mappings, Xdebug settings and the environment variables.