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

From: <svanpoeck[@]free.fr>
Date: Wed, 3 Jul 2013 08:32:02 +0200 (CEST)

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.

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.


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

Hello. I'm trying to enable xdebug, and have run into a problem that I can't solve. xdebug seems to be configured and enabled, but fails to connect to a waiting debugger on the same host as the server (I tried geben in emacs and the xdebug supplied debugclient). I get a message from the debugger "Waiting for debug server to connect." and nothing happens. xdebug does output a stack trace in the error log.
I don't know how to fix this - please help.


Some relevant info from output of phpinfo():

System info: Linux 2.6.18-308.8.2 #1 SMP Thu Jun 14 13:27:27 PDT 2012 x86_64

        PHP API 20090626
        PHP Extension 20090626
        Zend Extension 220090626
        Zend Extension Build API220090626,NTS
        PHP Extension Build API20090626,NTS
        Debug Build no
        Thread Safety disabled
        Zend Memory Manager enabled
        Zend Multibyte Support disabled
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.3, Copyright (c) 2002-2013, by Derick Rethans

        Apache Version Apache/1.3.42 (Unix) mod_ssl/2.8.31 OpenSSL/0.9.8k
        Apache Release 10342100
        Apache API Version 19990320
HTTP_COOKIE has XDEBUG_SESSION=netbeans-xdebug;

xdebug support enabled
Version 2.1.4

Supported protocols Revision
DBGp - Common DeBuGger Protocol $Revision: 1.145 $

Directive Local Value Master Value
xdebug.auto_trace Off Off
xdebug.collect_assignments Off Off
xdebug.collect_includes On On
xdebug.collect_params 0 0
xdebug.collect_return Off Off
xdebug.collect_vars Off Off
xdebug.default_enable On On
xdebug.dump.COOKIE / no value / / no value /
xdebug.dump.ENV / no value / / no value /
xdebug.dump.FILES / no value / / no value /
xdebug.dump.GET / no value / / no value /
xdebug.dump.POST / no value / / no value /
xdebug.dump.REQUEST / no value / / no value /
xdebug.dump.SERVER / no value / / no value /
xdebug.dump.SESSION / no value / / no value /
xdebug.dump_globals On On
xdebug.dump_once On On
xdebug.dump_undefined Off Off
xdebug.extended_info On On
xdebug.file_link_format / no value / / no value /
xdebug.idekey root / no value /
xdebug.manual_url http://www.php.net http://www.php.net
xdebug.max_nesting_level 100 100
xdebug.overload_var_dump On On
xdebug.profiler_aggregate Off Off
xdebug.profiler_append Off Off
xdebug.profiler_enable Off Off
xdebug.profiler_enable_trigger Off Off
xdebug.profiler_output_dir /tmp /tmp
xdebug.profiler_output_name cachegrind.out.%p cachegrind.out.%p
xdebug.remote_autostart Off Off
xdebug.remote_connect_back Off Off
xdebug.remote_cookie_expire_time 3600 3600
xdebug.remote_enable On On
xdebug.remote_handler dbgp dbgp
xdebug.remote_host localhost localhost
xdebug.remote_log /tmp/xdebug.log /tmp/xdebug.log
xdebug.remote_mode req req
xdebug.remote_port 9000 9000
xdebug.scream Off Off
xdebug.show_exception_trace Off Off
xdebug.show_local_vars Off Off
xdebug.show_mem_delta Off Off
xdebug.trace_format 0 0
xdebug.trace_options 0 0
xdebug.trace_output_dir /tmp /tmp
xdebug.trace_output_name trace.%c trace.%c
xdebug.var_display_max_children 128 128
xdebug.var_display_max_data 512 512
xdebug.var_display_max_depth 3 3
Received on Wed Jul 03 2013 - 07:32:08 BST

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