[xdebug-general] Re: xdebug doesn't connect to debugger

From: <svanpoeck[@]free.fr>
Date: Wed, 3 Jul 2013 10:56:50 +0200 (CEST)

Hi Vijay,

If the cookie value matches idekey and remote_host matches the debugger client host as the debug server sees it (that's why it's useful to check $_SERVER['REMOTE_ADDR']), I'm not sure what's going wrong then.

I saw Derick jumping in on this thread, I'll leave it up to him now. He knows best anyway ;)

Best,
Steven

----- Mail original -----
De: "Vijay Ramachandran" <vijaysr[@]yahoo-inc.com>
À: svanpoeck[@]free.fr
Cc: xdebug-general[@]lists.xdebug.org
Envoyé: Mercredi 3 Juillet 2013 10:50:01
Objet: Re: [xdebug-general] Re: xdebug doesn't connect to debugger

On 07/03/2013 02:00 PM, svanpoeck[@]free.fr wrote:

Hi Vijay,

On 03/07/13 10:19, Vijay Ramachandran wrote:

On 07/03/2013 12:02 PM, svanpoeck[@]free.fr wrote:

Hi Vijay,

The value of xdebug.idekey (root) doesn't match the cookie Netbeans sets to identify the debugger session (netbeans-xdebug). These must match, so you either have to change the value of the xdebug.idekey configuration setting, or the one set in Netbeans IDE. Hi Steve. Thanks for your reply.

I used the firefox extension (easiest xdebug 1.1), and it set the value of xdebug.idekey as netbeans. I'm not using netbeans as the debug client, only emacs/geben and the commandline debugclient which comes bundled with xdebug. Also, from the docs for the xdebug settings, it's not clear what to set idekey to, or how it's used. I tried changing this to "session" or "debugclient", I still can't get the server to connect. Even if you're not using Netbeans, the value of the XDebug config setting xdebug.idekey must still match the value set in the commandline the debugger client - in your case it was "netbeans-xdebug". Please set the value of xdebug.idekey to "netbeans-xdebug" in the .ini config file of XDebug and restart your webserver
Hi Steven. xdebug provided "debugclient" doesn't seem to provide a way to set the idekey on the command line. In either case, setting the value in the ini file to match the value sent in the cookie didn't help.

Also, what's the output of your $_SERVER['REMOTE_ADDR'] variable? It should be the same as the value of xdebug.remote_host. "localhost" seems quite unlikely to me. The docs say that xdebug.remote_host should be the host on which the debug client is running, which in my case is the same as the machine on which the server is running. This is why I used "localhost". The ip address too didn't work.
Setting remote_host to $_SERVER['REMOTE_ADDR'] doesn't work either. You should set the value of xdebug.remote_host to the *value* of $_SERVER['REMOTE_ADDR'] You can easily find that value in a phpinfo() display.
I meant to say that I set it to the value of $_SERVER['REMOTE_ADDR'] - and this too didn't help. I'm not sure why you say this should be done? It goes against what's mentioned in the xdebug docs, which asks to set xdebug.remote_host to the ip/name of the host on which the debugger client is running.

Any other ideas? Is there a way to make xdebug output more debug information?

thanks,
Vijay

Don't forget to restart the web server each time a modification was made on the XDebug configuration!

thanks,
Vijay Welcome,
Steven
Received on Wed Jul 03 2013 - 09:56:56 BST

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST