Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot configure Xdebug with XAMPP and PHP 7.3.0

Tags:

php

xampp

xdebug

I have Ubuntu 18.04, XAMPP, PHP 7.3.0 and I tried installing XDEBUG using the XDEBUG wizard after pasting the output of my phpinfo() and added the location of xdebug.so in the php.ini file. But still php -m doesn't show XDEBUG. Can someone please help to figure this out? Let me know if anyone successfully implemented this with PHP 7.3 XAMPP and XDEBUG.

like image 986
arshad Avatar asked Feb 28 '26 07:02

arshad


1 Answers

XDebug does fully support debugging for PHP 7.3 and XAMPP. I tested it just now again with the latest version of XDebug (2.7.1), PHP 7.3.0 and XAMPP.

At first, it didn't work for me either (except in my first line of code, but it didn't stop in other lines). It was similar to the problem discussed here which was caused by an old version of IDE. Updating my PhpStorm IDE fixed the problem (This problem and fix was only for PhpStorm IDE).

Therefore, if you are using PhpStorm, follow these steps:

  • Update your PhpStorm to the latest version. I updated it to 2019.1 version and it works fine.
  • Wait until indexing is done.
  • Enable accepting debugging, from the top-right button. Image

PS. You should add more details to your question, such as IDE, IDE version, what you have done already, and your debugging settings.

like image 175
Moradnejad Avatar answered Mar 01 '26 20:03

Moradnejad