XAMPP cannot install xdebug

Hello, I installed xampp, changed php.ini to this:

[XDebug] zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.3-5.3-vc9.dll" xdebug.profiler_append = 0 xdebug.profiler_enable = 1 xdebug.profiler_enable_trigger = 0 xdebug.profiler_output_dir = "C:\xampp\tmp" xdebug.profiler_output_name = "cachegrind.out.%t-%s" xdebug.remote_enable = 0 xdebug.remote_handler = "dbgp" xdebug.remote_host = "127.0.0.1" xdebug.trace_output_dir = "C:\xampp\tmp" 

So, I created a php file:

 <?php phpinfo(); ?> 

Copy paste content and paste into xdebug wizard and get this output:

 Tailored Installation Instructions Summary Xdebug installed: no Server API: Apache 2.4 Handler Apache Lounge Windows: yes - Compiler: MS VC9 - Architecture: x86 Zend Server: no PHP Version: 5.4.7 Zend API nr: 220100525 PHP API nr: 20100525 Debug Build: no Thread Safe Build: yes Configuration File Path: C:\Windows Configuration File: C:\xampp\php\php.ini Extensions directory: C:\xampp\php\ext Instructions Download Move the downloaded file to C:\xampp\php\ext Edit C:\xampp\php\php.ini and add the line zend_extension = C:\xampp\php\ext\ Restart the webserver If you like Xdebug, and thinks it saves you time and money, please have a look at the donation page. 

This tells me that it is not installed, so I followed the instructions and restarted the server. I opened info php again, copied everything again and pasted it into the master again. Press a button and I get exactly the same result, I don’t know what I am doing wrong, can someone tell me what I am doing wrong?

+6
source share
5 answers

Step 1: goto https://xdebug.org/wizard.php

step 2: copy and paste your phpinfo output into the text box that will be displayed at https://xdebug.org/wizard.php

Step 3: click to analyze my phpinfo () output button, it will analyze your system and based on this will provide you with a suitable php_xdebug.dll file that you need to set the folder D: \ xampp \ php \ ext

step 4: edit the php.ini file and add the following line zend_extension = D: \ xampp \ php \ ext \ your-php_xdebug.dll

step 5: restart the server

Help video: https://www.youtube.com/watch?v=HbJOP0YcSjs

+4
source

A recent version of XAMPP (my v3.2.2) already had the php_xdebug.dll file in the xampp\php\ext folder, so we don’t need to go to https://xdebug.org/wizard.php to download the file.

Just open the xampp\php\php.ini , add the codes:

 [xdebug] zend_extension = "C:\xampp\php\ext\php_xdebug.dll" 

Restart XAMPP, after which you will see that xdebug works like php --version in CMD:

Xdebug

+3
source

Have you fixed the problem? If not, try this. I have the same situations as you, and I got the result

1) Content of php.ini file

 zend_extension = "c:\xampp\php\ext\php_xdebug-2.2.3-5.4-vc9.dll" xdebug.remote_autostart=on xdebug.remote_enable=on xdebug.remote_enable=1 xdebug.remote_handler="dbgp" ;xdebug.remote_host="localhost:81" xdebug.remote_host=192.168.1.5 ;xdebug.remote_connect_back=1 xdebug.remote_port=9000 xdebug.remote_mode=req xdebug.idekey="netbeans-xdebug" 

place the above dll in the c: \ xampp \ php \ ext \ directory

xdebug.remote_host = 192.168.1.5 - This is the IPv4 address of my system, I changed to this because I could not debug with localhost and 127.0.0.1.

in NetBeans IDE, go to Tools-> Options-> PHP-> Debugging. The values ​​of the debugger port and session identifier must match the port and idekey specified in php.ini

Now save php.ini, restart Apache and now try debugging

Thanks Johnson

0
source

I had the same problem, and it was decided to check the php and xampp versions: it turned out that xampp was 32 bits (installed on a 64-bit computer), and I chose the wrong version of xdebug (it should be 32 bits).

0
source

As mentioned earlier, before downloading xdebug dll, make sure your xampp installation does not already have the php_xdebug file in the php / ext folder. If the php_xdebug file is already in the xampp / php / ext folder, just add 1 line to the php.ini file

 [xdebug] zend_extension = "C:\xampp\php\ext\php_xdebug.dll" 
0
source

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


All Articles