XDebug not working with xampp

I use (or try anyway) to use the associated 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 about version)

This is a completely new installation of XAMPP, the only thing I added in php.ini (in xampp / php / php.ini):

zend_extension_ts = "C:\xampp\php\extensions\php_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:\xampp\tmp"

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:\xampp\tmp"

xdebug.dump.SERVER = REMOTE_ADDR,REQUEST_METHOD

(this is just one of many different configurations I've tried)

But try as I could, XDebug just doesn't connect to anything. I tried Netbeans and Debugclient.exe (in xampp / php / debugclient.exe). They both just sit and wait forever.

How to make XDebug work?

+3
source share
5 answers

Xdebug v2.0 PHP 5.3. Xdebug v2.1 PHP 5.3. xdebug ini config, :

zend_extension_ts = "C:\xampp\php\extensions\php_xdebug.dll"
xdebug.remote_enable   = On
xdebug.remote_host     = "localhost"
xdebug.remote_port     = 9000
xdebug.remote_handler  = "dbgp"

, , . , zend.

0

. , .

zend_extension = \xampp\php\ext\php_xdebug-2.2.5-5.5-vc11.dll

- XDebug, .

zend_extension = php_xdebug-2.2.5-5.5-vc11.dll

, , - , .

+6

. , . localhost ( XAMPP, ) phpinfo(). "Ctrl + C". http://xdebug.org/find-binary.php , . , . , , (, C:\xampp\php\ext - im, XAMPP 1.7.7). php.ini, , , 'C:\xampp\php\php.ini' '[XDebug]'. 'zend_extension = C:\xampp\php\ext\php_xdebug-2.1.3-5.3-vc9.dll' ( ) '; zend_extension =' C:\xampp\php\ext\php_xdebug.dll "'. : , '; ' , . 'exdebug.FUNCTION_NAME', .

. phpinfo(), , , - xDebug. , .

PD: , , xDebug, 147kb, , (ei. 3kb).

, .:)

+4
0

I ran into such a problem where I am configured as xdebug for xampp 1.7.2. Failed. I just changed zend_extension_ts to zend_extension. he works for me.

0
source

Source: https://habr.com/ru/post/1750508/


All Articles