Skip to content
Advertisement

XDebug not working with xampp

I’m using (or trying to anyway) use the bundled XDebug with XAMPP 1.7.2. It comes bundled with Apache 2.2.12, PHP 5.3.0, XDebug 2.0.5 and Zend (not sure on version)

This is a totally fresh install of XAMPP, the only thing I’ve added to php.ini (at xampp/php/php.ini) is:

zend_extension_ts = "C:xamppphpextensionsphp_xdebug.dll"
[xdebug]
xdebug.auto_trace = 1
xdebug.collect_includes = 1
xdebug.collect_params = 1
xdebug.collect_return = 1
xdebug.default_enable = 1
xdebug.extended_info = 1
xdebug.show_local_vars = 0
xdebug.show_mem_delta = 1
xdebug.trace_format = 1
xdebug.trace_options = 0
xdebug.trace_output_dir ="C:xampptmp"

xdebug.remote_enable=1
xdebug.remote_mode="req"
xdebug.remote_host=127.0.0.1
xdebug.remote_port=17869
xdebug.idekey=<idekey>

xdebug.remote_handler="gdb"
xdebug.auto_profile = 1
xdebug.auto_profile_mode = 2
xdebug.output_dir = "C:xampptmp"

xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD

(this is only one of many different configs I’ve tried)

But try as I might, XDebug just will not connect to anything. I’ve tried Netbeans and Debugclient.exe (in xampp/php/debugclient.exe). They both just sit and wait forever.

How do I get XDebug to work?

Advertisement

Answer

Xdebug v2.0 shouldn’t work with PHP 5.3. Xdebug v2.1 provides PHP 5.3 support. Otherwise I would get rid of the xdebug ini config except:

zend_extension_ts = "C:xamppphpextensionsphp_xdebug.dll"
xdebug.remote_enable   = On
xdebug.remote_host     = "localhost"
xdebug.remote_port     = 9000
xdebug.remote_handler  = "dbgp"

use this as your test and once this works then add additional configs. Make sure you comment out other zend stuff.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement