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:50:45 BST
This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST