

This can be done using the following commands: fin config set -env=local 'PHP_IDE_CONFIG=serverName=$ to support both To debug PHP CLI scripts, we have to tell PHPStorm which existing server configuration to use via the
#PHPSTORM DEBUG JAVASCRIPT MANUAL#
CLI Scriptsįirst, follow automatic or manual instructions to configure server and path With this manual setup you will be able to debug scripts within your project’s root ( /var/www/ on the server).

Map the project directory on the host to /var/www/ on the server: Set Name and Hostname to project’s virtual host (e.g., myproject.docksal)Ĭonfigure host to server directory mappings.Under Preferences > Languages & Frameworks > PHP > Servers add a new server.If you don’t get the Incoming Connection From Xdebug dialogue or you need to debug scripts above the docrootĭirectory, see the manual setup steps. By default, you will not be able to debug anything above the project’s docroot folder.
#PHPSTORM DEBUG JAVASCRIPT HOW TO#
PHPStorm automatically configures a server and directory mappings between the host and the server.ĭirectory mappings are very important, as that’s how PHPStorm knows how to map sources on the server to those on

Xdebug integration is disabled by default as it causes a major performance hit. Xdebug can be used to debug both web requests and cli scripts (e.g., Drush commands).
