Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know the xdebug version i have installed?

Tags:

xdebug

how to know the xdebug version i have installed?

Regards

Javi

like image 893
ziiweb Avatar asked Mar 19 '10 17:03

ziiweb


People also ask

How do I know what version of xdebug I have?

To detect whether xdebug is v3 or not by mashing up the @daniel and @bishop's answer. php -r "exit(version_compare('3.0',phpversion('xdebug'),'>=')? 1:0);"; echo $? Useful for shell scripts in Dockerfiles and/or CIs.

Where is xdebug config?

ini" file to configure XDebug. The "Loaded Configuration File" in the screenshot above tells you what "php. ini" file is being used. For Windows, this is normally "c:\xampp\apache\bin\php.

Where is xdebug INI Ubuntu?

ini . Try find it at /etc/php/7.2/mods-available/xdebug.


1 Answers

php -v command output includes information about installed XDebug version:

$ php -v PHP 5.6.13-1+deb.sury.org~trusty+3 (cli)  Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies     with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2015, by Zend Technologies     with Xdebug v2.3.2, Copyright (c) 2002-2015, by Derick Rethans 

or

$ php -v | grep -i "xdebug" 
like image 107
Artur Eshenbrener Avatar answered Sep 23 '22 12:09

Artur Eshenbrener