I am trying to get the following to setup work:
Windows 7 - 64-bit
XAMPP 1.7.4
XDebug [php_xdebug-2.1.0-5.3-vc9-x86_64.dll]
When I run phpinfo() from Xampps homepage, XDebug it is not listed anywhere. I checked the Apache error logs and there are no errors, so it seems to load the module without problem? I haven't used PHP in years so I have no clue why this isn't working.
[PHP.ini]
[XDebug]
zend_extension_ts = "C:\xampp\php\ext\php_xdebug-2.1.0-5.3-vc9-x86_64.dll"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "localhost"
xdebug.remote_port = 9000
I think you don't have the right compiler version. Copy the output of your phpinfo onto this page and it will tell you which version you need.
Print out your
phpinfo();
and look at "Compilater" line
At home (win7x64 + wamp) => MSVC6 (Visual C++ 6.0)
So you need the vc6 version not vc9 version
Related
I'm trying to configure XAMPP to debug. I've got the Xdebug dll from the site with my PHP version and put it in my ext fold, but when I change the php.ini with the next code and restart Apache, the localhost link stops working.
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug-3.1.0-8.0-vs16-x86_64.dll"
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
Someone who can help me here and ho to configure VSCode.
Useful informations:
Ubuntu 19.04 x86_64
PHP 7.2
Xampp for linux 7.3.4
Netbeans 8.2
Xdebug 2.7.1
I installed with success PHP-cli, netbeans and xampp for linux on my brand new Ubuntu 19.04 installation.
After that I uploaded my /opt/lampp/etc/php.ini file on https://xdebug.org/wizard.php and I followed scrupulously the instructions.
I copied the generated xdebug.so in /opt/lampp/lib/php/extensions/no-debug-non-zts-20180731 and then I edited the /opt/lampp/etc/php.ini adding those lines:
[xdebug]
zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20180731/xdebug.so
xdebug.remote_autostart = 1
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = 127.0.0.1
xdebug.remote_log = /tmp/xdebug_remote.log
xdebug.remote_mode = req
xdebug.remote_port = 9000
I went to http://localhost/dashboard/phpinfo.php , here I can see the Zend Engine logo but in the "configuration" section there isn't any xdebug section.
In my local terminal i executed those commands php -m and php -v. The first returned a list of modules among which xdebug was not included, the second returned a the php version and, again, xdebug was not included.
After this I decided to add the [xdebug] section also in the /etc/php/7.2/cli/php.ini and then the php -m and php -v commands have returned xdebug in loaded modules and in the version list.
Anyway the http://localhost/dashboard/phpinfo.php refuses to list xdebug among the active modules and if I try to start a debug session netbeans hangs-on "waiting for connection xdebug".
I checked two, three, four.... times the zend_extension path and is corrected
I restarted multiple times lampp, apache, netbeans and the pc
I tried multiple ports 9000, 9001, 9002 ....
The php and xdebug versions are compatible
Here are some similar problems: xdebug in phpinfo() is not showing , No xdebug in phpinfo() , Xdebug installed but does not display in Phpinfo for Xampp .
Obviously, when I could, I tried these solutions, but without success.
I have tried to enable the xdebug for this specific php version by changing the php.ini [XDebug] code to required format as below. Still no changes in the phpinfo.
zend_extension = "\xampp\php\ext\php_xdebug-2.5.0-7.1-vc14-nts-x86_64.dll"
xdebug.remote_enable = 1
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port=9000
I have tried with both nts & ts (32/64) xdebug versions. Please anyone help me out..
You definitely need to use the Thread Safe version and not the nts version
The XDEBUG extension must match the compiled version of your Apache and PHP i.e. if Apache/PHP are 32 bit then so must XDEBUG be 32bit
Try putting the drive letter into the zend_extension = "C:\xampp\php\ext\php_xdebug-2.5.0-7.1-vc14-nts-x86_64.dll line. Assuming your XAMPP is installed on C:
You also specify PHP7.0.1 in the title but you are using the XDEBUG for PHP7.1 If you are really using PHP7.0.1 then you need to use php_xdebug-2.5.1-7.0-vc14.dll
I installed php 5.4.0 and nginx 1.0.14 on windows 7.
When i want to install xdebug i downloaded xdebug 2.20(new for 5.4.0) and then i copied dll into my "php ext" folder.After that i added these lines in php.ini file.
zend_extension = C:\nginx\php\ext\php_xdebug.dll
[xdebug]
xdebug.remote_enable = 1
xdebug.remote_autostart=off
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_port = 9900
but when i started nginx it seems "Failed loading C:\nginx\php\ext\php_xdebug.dll" but the folder and file is correct.
But when i tried to change "zend_extension = C:\nginx\php\ext\php_xdebug.dll" with "zend_extension_ts = C:\nginx\php\ext\php_xdebug.dll" it didnt seem any error but my phpinfo() file doesnt seem xdebug installed.
How can i run it ?
You should no longer use zend_extension_ts, but just zend_extension. The _ts and _debug postfixes have been removed in PHP 5.3. If you see "failed loading" it's most likely that you use the wrong binary. Please refer to http://xdebug.org/find-binary.php to see which one you need.
my php version is PHP Version 5.3.6.
Xdebug setting in php.ini:
[Xdebug]
zend_extension_ts="D:\php\ext\php_xdebug-2.1.2.dll"
xdebug.remote_enable=1
;IP
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.auto_trace = On
xdebug.show_exception_trace = On
xdebug.remote_autostart = On
xdebug.collect_vars = On
xdebug.collect_return = On
xdebug.collect_params = On
i have installed PHP 5.3 VC6 (32 bit)/ PHP 5.3 VC9 (32 bit). they are both failed.
when typed "php --ini" on cmd . it shows:
in order to find the correct binary to use, please follow the instructions at http://xdebug.org/find-binary.php
cheers,
Derick
Instead of attempting to mix 'n match modules, try a stock download from Apache Friends. http://www.apachefriends.org/en/xampp-windows.html
XAMPP comes with xdebug right out of the box.
Looks like you just need to download the correct version of xdebug for your version of Windows / PHP. There are VC9 builds here, just select the appropriate one for 32 or 64 bit.
[http://nepuzz.com/index/detail/18][1]
You can check the above link and install xdebugger in sublime 3 with wamp server easily.
If you don't use Xamp.
Download windows binary corresponding your php version: https://xdebug.org/download
(optional) move downloaded file (php_xdebug.......dll in common location and rename it: for example xdebug.dll in C:\phpextensions\
Run php --ini in cmd to know where is the php.ini file (p.ex: C:\php\php.ini)
Edit C:\phpextensions\xdebug.dll and add following line:
zend_extension = C:\globally\debug.dll
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_autostart = 1
xdebug.remote_port = 9000
xdebug.show_local_vars = 1