Essential Articles on Remote PHP Debugging with PHPStorm and Xdebug

Steps:

 

Enable remote xdebug in php.ini 

you will add a line in php.ini

xdebug.remote_enable=1

Test your connection, if it doesn’t work with localhost, try you local network IP address as it depends to which network adapter PHPStorm is using for the debugging purposes.

 

Mac-Pro:~ mac$ telnet localhost 9000

Trying ::1…

telnet: connect to address ::1: Connection refused

Trying 127.0.0.1…

Connected to localhost.

Escape character is ‘^]’.

^\^]

telnet> exit

?Invalid command

telnet> quit

Connection closed.

Mac-Pro:~ mac$ telnet 192.168.1.8 9000

Trying 192.168.1.8…

Connected to 192.168.1.8.

Escape character is ‘^]’.

 

 

http://randyfay.com/content/remote-drupalphp-debugging-xdebug-and-phpstorm

http://randyfay.com/content/remote-command-line-debugging-phpstorm-phpdrupal-including-drush

Leave a Reply