Hi,
the last two days, i tried to configure phpStorm 4 and xDebug - without success.
Webserver is
Ubuntu 12.04 LTS
lighttpd/1.4.28 (ssl)
PHP Version => 5.3.10-1ubuntu3
Xdebug v2.1.4 (xdebug was installed with the instruction from here http://xdebug.org/wizard.php)
xdebug-config:
xdebug.remote_enable=1
xdebug.remote_autostart=0
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.idekey=PHPSTORM
xdebug.remote_log="/srv/log/xdebug.log"
Local machine with phpStorm 4.0
OSX 10.7.3
phpStorm 4
I tried:
Case 1
- Activate the "Listen php Debug Button"
- Use the bookmarkletsgenerator (http://blog.jetbrains.com/webide/2011/02/zero-configuration-debugging-with-xdebug-and-phpstorm-2-0/) to start the debug session
- Cookie has the correct Values: - XDEBUG_SESSION - PHPSTORM
- set a breakpoint in phpStorm an load the page.
nothing happens.
I try the script from this comment http://youtrack.jetbrains.net/issue/WI-1818#comment=27-207037 with fsockopen('[webserver]', '9001') -> unable to connect to webserver:9001 (Connection refused)
phpStorm Tools > DBGp Proxy -> Register with webserver-ip / webserver-name / localhost / 127.0.0.1 on port 9000 / 9001 and IDE-Key PHPSTORM - nothing
Case 2
I installed pydbgproxy on webserver.
INFO: dbgp.proxy: starting proxy listeners. appid: 7881
INFO: dbgp.proxy: dbgp listener on 127.0.0.1:9000
INFO: dbgp.proxy: IDE listener on 127.0.0.1:9001
I reload the browser
INFO: dbgp.proxy: connection from 127.0.0.1:51042 [<__main__.sessionProxy instance at 0xd233b0>]
WARNING: dbgp.proxy: No server with key [PHPSTORM], stopping request [<__main__.sessionProxy instance at 0xd233b0>]
INFO: dbgp.proxy: session stopped
phpStorm Tools > DBGp Proxy -> Register with webserver-ip / webserver-name / localhost / 127.0.0.1 on port 9000 /9001 and IDE-Key PHPSTORM - nothing
Case 3
ssh tunnel to webserver with ssh -L 9001:localhost:9001 me@webserver.de
phpStorm Tools > DBGp Proxy -> Register with localhost and IDE-Key PHPSTORM -> Xdebug proxy: IDE successfully registered with ide key 'PHPSTORM'
INFO: dbgp.proxy: Server:onConnect ('127.0.0.1', 54281) [proxyinit -p 9000 -k PHPSTORM -m 1]
But
many...
INFO: dbgp.proxy: connection from 127.0.0.1:51527 [<__main__.sessionProxy instance at 0x7f963c073128>]
INFO: dbgp.proxy: connection from 127.0.0.1:51528 [<__main__.sessionProxy instance at 0x7f963c06d050>]
INFO: dbgp.proxy: connection from 127.0.0.1:51529 [<__main__.sessionProxy instance at 0x7f963c069098>]
INFO: dbgp.proxy: connection from 127.0.0.1:51530 [<__main__.sessionProxy instance at 0x7f963c068a70>]
...
and
ERROR: dbgp.proxy: Unable to connect to the server listener 127.0.0.1:9000 [<__main__.sessionProxy instance at 0x7f963c0859e0>]
Traceback (most recent call last):
File "./pydbgpproxy", line 222, in startServer
File "/usr/lib/python2.7/socket.py", line 187, in __init__
error: [Errno 24] Too many open files
WARNING: dbgp.proxy: Unable to connect to server with key [PHPSTORM], stopping request [<__main__.sessionProxy instance at 0x7f963c0859e0>]
WARNING: dbgp.proxy: Exception in _cmdloop [[Errno 104] Connection reset by peer]
WARNING: dbgp.proxy: Exception in _cmdloop [[Errno 104] Connection reset by peer]
In phpStorm - nothing happens.
I read somewhere, that it can be problem with ipv6. therefore I disabled ipv6, but nothing changes.
Case 4
I set
xdebug.remote_host = serverIp
and start the proxy with
./pydbgpproxy -i serverIp:9001 -d serverIp:9000
phpStorm Tools > DBGp Proxy with serverIp an 9001 an idekey works
INFO: dbgp.proxy: Server:onConnect ('88.134.8.12', 64011) [proxyinit -p 9000 -k PHPSTORM -m 1]
But if I reload the page, the browser loads eternal and
INFO: dbgp.proxy: connection from 188.165.179.56:42958 [<__main__.sessionProxy instance at 0x7f5704033bd8>]
ERROR: dbgp.proxy: Unable to connect to the server listener 88.134.8.12:9000 [<__main__.sessionProxy instance at 0x7f5704033bd8>]
Traceback (most recent call last):
File "./pydbgpproxy", line 223, in startServer
self._server.connect((self._serverAddr[0], self._serverAddr[1]))
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
error: [Errno 110] Connection timed out
WARNING: dbgp.proxy: Unable to connect to server with key [PHPSTORM], stopping request [<__main__.sessionProxy instance at 0x7f5704033bd8>]
INFO: dbgp.proxy: session stopped
in phpStorm nothing happens
Can someone help me?
