I like it when remote debugging works with the following software configuration:
Win 7 Pro 64bit WAMP Server 2.2 (32 bit), incl. Apache 2.2.22, PHP 5.4.3, XDebug php_xdebug-2.2.1-5.4-vc9.dll JetBrains PHPStorm 4.0.3
1.) WAMP is up and running, my site can be found under localhost / fox /
2.) PHP Storm has a project in which there is a mapping between my source files and the apache localhost / fox alias
2.) I installed the PHP XDebug extension and added the following lines to my php.ini
[xdebug] zend_extension="c:/wamp/bin/php/php5.4.3/zend_ext/php_xdebug-2.2.1-5.4-vc9.dll" xdebug.remote_enable=On xdebug.remote_host="localhost" xdebug.remote_port=9000 xdebug.remote_connect_back=On xdebug.remote_autostart=On xdebug.profiler_enable=On xdebug.profiler_enable_trigger=off xdebug.profiler_output_name=cachegrind.out.%t.%p xdebug.profiler_output_dir="c:/wamp/tmp" xdebug.remote_log="C:/wamp/tmp/xdebug.log" xdebug.remote_cookie_expire_time=6000
To do this, you must configure the XDebug remote debugger and the feedback address.
I already installed my installation here: xdebug.org/wizard.php
3.) I configured phpstorm, first I added a local server
and then checked my settings here
http://www.bilder-hochladen.net/files/jrn0-2-c81e-jpg-nb.html
(I tried 127.0.0.1/fox as the server address, and localhost instead)
hier my debug settings: http://www.bilder-hochladen.net/files/jrn0-1-c4ca-jpg.html
Now I restart my apache, I enter phpstorm, set a breakpoint (red), click the function
Run -> Start listen to PHP Debug Connections
The handset tans to green, whatever it is, but it is a positive signal for me.
When I now run my php Script on the local absolutley web server, nothing happens, the program works on the breakpoint and does not stop.
In the Xdebuggers log (C: /wamp/tmp/xdebug.log) I find loads of messages like these:
I: Checking remote connect back address. I: Remote address found, connecting to ::1:9000. E: Could not connect to client. :-( Log closed at 2012-07-19 14:21:08
Somewhere on the Internet, I found a hint that the Windows Firewall could block the connection, so I turned it off, but that didn't help.
I also tried connecting via telnet to localhost: 9000, and I got a response from phpstorm.
Does anyone have an idea where to look for a bug or what else could I try to get this stuff to work?
Thanks so much for your help in advance, Michael
ps Sorry, I am not allowed to post more than two links, because I'm new here, so there is no hyperlink to the xdebug master.