Installation of Xdebug in wamp(2.0) - php

In php.ini file
;xdebug Configuration
zend_extension="C:/TenthPlanet/wamp/bin/php/php5.3.0/ext/php_xdebug-2.1.2-5.3-vc6.dll"
zend_debugger.allow_hosts=localhost
zend_debugger.expose_remotely=always
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.profiler_enable=1
xdebug.profiler_output_dir="C:/TenthPlanet/wamp/tmp/xdebug"
xdebug.remote_enable=1
xdebug.remote_autostart=On
xdebug.remote_host=localhost
xdebug.remote_mode=req
xdebug.remote_log="C:/TenthPlanet/wamp/tmp/xdebug"
But its not installing. When i copied my phpinfo source in xdebug.org/wizrad.php its saying my compiler MSVC6 needs to be upgrade MSVC9 (microsoft visual studio C++). Then I installed the latest one but its not working.
Its not installing properly guys. So whats is the problem ?
My configuration is
PHP - 5.3.0
Apache - 2.2.11

Try using the php_xdebug-2.2.3-5.3-vc9.dll instead or the php_xdebug-2.1.2-5.3-vc6.dll
Alternatively run this wizard on the XDEBUG site, do as it says and copy and paste the output from your phpinfo into it and it will tell you which version you need automatically.

Related

Xdebug is not installed on XAMPP

I want to install Xdebug so because my PHP version is 7.4.8, I downloaded php_xdebug-3.0.2-7.4-vc15-nts-x86_64.dll file and placed it at php\ext\ folder.
Then I opened up php.ini and added these lines at the end of it:
[XDebug]
zend_extension="F:\xampp\php\ext\php_xdebug-3.0.2-7.4-vc15-nts-x86_64.dll"
xdebug.remote_enable=On
xdebug.remote_host="localhost"
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.var_display_max_depth=15
After that I restarted Apache and opened up dashboard but the Xdebug is not showing there, meaning that it is not installed yet somehow.
So what should I do now, in order to install it properly?
Maybe try using an older version of XDebug that is verified to work in the XAMPP Dashboard:
https://xdebug.org/files/php_xdebug-2.9.7-7.4-vc15-x86_64.dll
If that does not work, then there might be more details on this page that could help:
https://gist.github.com/odan/1abe76d373a9cbb15bed

configure xdebug for php 7.1.28

I configure xdebug by flowing https://xdebug.org/wizard.php, and I'm pretty sure that I used the right phpize(/opt/lampp/bin/phpize-7.1.28), and after I compile, I put it in /opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so, here is the part of my /opt/lampp/etc/php.ini :
[XDebug]
xdebug.remote_enable=1
xdebug.remote_port=9000
zend_extension = /opt/lampp/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so
Then, I restart my apache server, when I check out phpinfo, there is still no xdebug.
BTW, is there any possible that my php version can not be configured with xdebug, because I noticed that the extension directory is no-debug-non-zts-20160303

Xdebug doesn't work with PhpStorm on OS X El Capitan

I have done the following steps in order to enable xdebug with PhpStorm:
1) Paste the phpinfo() to https://xdebug.org/wizard.php and get the proper xdebug version to my system which is xdebug-2.5.0.tgz (php version is 5.6.27)
2) Install xdebug by running brew install homebrew/php/php56-xdebug
3) Edit the php.ini that located by phpinfo(), I add the following lines
zend_extension=/usr/local/Cellar/php56/5.6.27_4/lib/php/extensions/no-debug-non-zts-20131226/xdebug.so
xdebug.remote_autostart=on
xdebug.remote_enable=on
xdebug.remote_enable=1
xdebug.remote_mode="req"
xdebug.remote_log="/usr/local/var/log/xdebug.log"
xdebug.remote_host=xxxx.com
xdebug.remote_port=9000
xdebug.remote_handler="dbgp"
xdebug.idekey="PHPSTORM"
4) PhpStorm can recognize xdebug, but there are some errors below there
5) Try to do web server debug validation, get
So what should I do to fix it?

Installation xdebud on sublime 3 error

I'm trying install xdebug on sublime3. I installed with package control and added the following code in php.info:
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_log="/var/log/xdebug/xdebug.log"
But it doesn't even list in the info.php. The documentation says to add
zend_extension="/wherever/you/put/it/xdebug.so"
But I can't find the location of .so in the Fedora that I'm using, and I guess it's because I downloaded it with package control. Can anyone help?
Run php -i | grep extension_dir in your terminal to see where the extensions for PHP are installed.

Netbenas X-Debug socket exception

I'am trying to debug my php files via x-debug and Netbeans
I'am using
Netbeans 8.0,
PHP version 5.5.11,
Xampp 1.8.3,
xdebug:2.2.5(latest version when i check it from wizard),
OS:Windows 7
xdebug php.ini configuration
[XDebug]
zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.5-5.5-vc11.dll"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
With this system and configuration when i try to debug my php file i'am getting socket exception on Netbeans 8.0. I have read and tried almost all solutions on web but couldn't fix it.
What can be the reason of this problem ? Any help would be appriciated.
php_xdebug-2.2.5-5.5-vc11-nts.dll needs
MSVCR110.DLL I'm not sure if this file is located on your computer
and look for Php5.dll and put php_xdebug-2.2.5-5.5-vc11-nts.dll into the same folder.
Mostly in the C:\xampp\php\ folder not C:\xampp\php\ext\

Categories