Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP XDEBUG not getting enabled

Unable to enable XDEBUG. Any help or check if it is enabled and not reflected? I am on PHP7 and am using Xdebug 2.4.0rc2. PHP.INI settings below:

[XDebug]
zend_extension="C:/php/ext/php_xdebug.dll"

xdebug.remote_enable = on
xdebug.remote_host = localhost
xdebug.remote_port = 10000
xdebug.remote_handler = dbgp
xdebug.profiler_enable = 1 
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_dir = "profilerlogs"
xdebug.profiler_output_name = cachegrind.out.%p

Unable to get it enabled. The steps are right but doesnt show up installed in phpinfo() as well.

like image 875
Gary Avatar asked Dec 07 '15 11:12

Gary


People also ask

Why is Xdebug not working?

Xdebug cannot connect to PhpStorm This means that Xdebug tries to connect to the host and can't make the connection. To fix the issue, set xdebug. remote_connect_back=0 ( xdebug. discover_client_host=false for Xdebug 3) and make sure that xdebug.

Does Xdebug work with php 8?

PHP Version Support # In general, at any point when an Xdebug version is released, it will support the currently supported PHP versions. On Windows you need at least PHP 7.4. 20 or PHP 8.0.


1 Answers

I had same problem with XAMPP PHP7 now it's solved :) There should be missing or wrong extention file in your C:/php/ext/ directory.

This will solve your problem.

  1. Go to xDebug
  2. Dowload Xdebug 2.4.0rc1 (PHP 7.0 VC14 TS 32/64)
  3. Rename it to php_xdebug.dll
  4. Paste this file in "php/ext" folder
  5. Restart your server.

Now check your phpinfo()

In my case there were 64bit version so I've just changed to 32bit

like image 146
Haider Lasani Avatar answered Sep 21 '22 06:09

Haider Lasani