I'm trying to setup PHP debugging with Xdebug but I'm having trouble getting PhpStorm to connect to the xdebug proxy. When I go to Tools | Xdebug Proxy | Register IDE I get the following error notification:
Cannot connect to xdebug proxy on 'xx.xx.xxx.xxx:9001'
Does anyone know why it would be unable to connect? Considering the info below, the problem definitely seems to be PhpStorm not registering with the proxy.
I'm using the pydbgpproxy on the remote server. Output from pydbgpproxy when I start it:
$ python pydbgpproxy
INFO: dbgp.proxy: starting proxy listeners. appid: 6937
INFO: dbgp.proxy: dbgp listener on 127.0.0.1:9000
INFO: dbgp.proxy: IDE listener on 127.0.0.1:9001
When I load a PHP page in a browser, I get this output from pydbgpproxy (I believe that this is because PhpStorm could not register itself with the proxy):
INFO: dbgp.proxy: connection from 127.0.0.1:44893 [<__main__.sessionProxy instance at 0x14ea488>]
WARNING: dbgp.proxy: No server with key [smm11], stopping request [<__main__.sessionProxy instance at 0x14ea488>]
INFO: dbgp.proxy: session stopped
I noticed that there might be a problem with keys being mismatched so I tried all sorts of possible ones and all give the same result. (?XDEBUG_SESSION_START=xxx)
; This gets overridden to 'root' (I can see this in phpinfo()), I've tried using both in the URL params.
Some additional info:
-without the dbgp proxy, I can debug in Vim with the dbgp plugin
-multiple developers working on one project
-can't use xdebug.remote_connect_back because of security and because we're using Varnish
-developers work locally in PhpStorm and use automatic FTP to sync files on remote server
-apache httpd serves each dev's workspace on the remote server