Posts

Showing posts with the label JetBrains

Remote debugging PHP from phpStorm

Despite all the documentation out there, it seemed to take me longer than it should. Although in hindsight, it could have been working originally as phpStorm's indicator that it's debugging is subtle. Debug session within phpStorm Two articles to get you started: phpStorm Help: Configuring Xdebug phpStorm Confluence: Xdebug Installation Guide To setup follow do the following: For chrome (probably the easiest), install this plugin: Chrome Plugin Configure the plugin and select phpStorm as your IDE. Next sign onto your remote server and enable xdebug module for cPanel, click select php version (only 5.4 and 5.5 supported) update version check the xdebug module click update Edit the php.ini, e.g. for cPanel, edit or create:  /home/[username]/public_html/.user.ini ; Settings for xdebug module was already loaded on this machine: ; zend_extension=/opt/alt/php54/usr/lib64/php/modules/xdebug.so xdebug.remote_host=[your modems IP address] xdebug.remote_port=[a po...