I use PHPStorm along with Xdebug to step through my code. PHPStorm is running on a Windows 7 machine, and my local webserver is running on a separate CentOS 6.4 machine. I've done a phpinfo();
to verify that Xdebug is being loaded by PHP, and it is. The following are the settings for my Xdebug in the PHP.ini:
[xdebug] zend_extension="/usr/lib/php/modules/xdebug.so" xdebug.remote_enable = 1 xdebug.remote_port = 9000 xdebug.remote_host = "192.168.1.130" xdebug.remote_log = "/var/log/httpd/xdebug_log"I similarly setup PHPStorm to use my CentOS server as the debugging server, and I listen for connections. I assigned static IPs to both of these machines. Using a Chrome Xdebug plugin to set the appropriate cookies, I attempt to set a breakpoint, but nothing happens. When I go to look in /var/log/httpd/xdebug_log (which has 777 permissions), nothing is written there. I've opened up port 9000, and I can telnet from my CentOS machine back to my Windows machine on port 9000 no problem. I also set SELinux to permissive, but to no avail.
Any ideas what could be happening here?
xdebug_break();
to programmaticaly hit breakpoint or withxdebug.remote_connect_back = 1
orxdebug.remote_autostart = 1
(check docs for details). SELinux definitely can cause issues (not expert at all in this regard). In any case, have a look at this as well: blog.jetbrains.com/phpstorm/2013/07/… – LazyOnexdebug_var_dump()
orxdebug_is_enabled()
, I'm getting values indicating that xdebug is working. However, PHPStorm is not connecting. I've quadruple checked my remote server settings, and I can 100% tell you that they are correct. – Dave