Search code examples
phpwindows-8xdebugphpstorm

cannot remote debug php5.4 on Win8


I am trying to remote debug php 5.4.4 using phpStorm 4.0.3, but failed. Strangely, I can debug local PHP code normally in Phpstorm.

I'm using Xdebug v2.2.0 and my OS is Windows 8, which is the main reason cannot debug I assume. Because I can do it on Windows Server 2003, using the same configuration.

This is my configuration in php.ini:

[xdebug]
zend_extension="D:/apachePHP/PHP/ext/php_xdebug.dll"

xdebug.remote_enable   = On
xdebug.remote_host     = "localhost"
xdebug.remote_port     = 9000
xdebug.remote_handler  = "dbgp"
xdebug.auto_trace = 1
xdebug.collect_includes = 1
xdebug.collect_params = 1
xdebug.collect_return = 1
xdebug.default_enable = 1
xdebug.collect_assignments = 1
xdebug.collect_vars = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
xdebug.show_exception_trace = 1
xdebug.show_local_vars = 1

Solution

  • I use phpStorm with windows 8 + wampserver 32bit (also 64bit works) and it works, but i had to update the xedebug.dll at: http://xdebug.org/download.php

    you might also need to start debuging session in browser, helpfull chrome extension: xdebug helper

    there could be many causes, but one of these might be it.