There is a bug for this. The link is thus: https://bugs.xdebug.org/view.php?id=1593

Which describes that you need to use Xdebug 2.7.0beta1 for now.

Answer from Hannibal on Stack Overflow
🌐
DevSense
blog.devsense.com › 2022 › install-xdebug-for-xampp-on-mac
How to install and configure Xdebug for XAMPP on Mac - DEVSENSE Blog
November 16, 2022 - Install and configure Xdebug for XAMPP on Mac to debug PHP in Visual Studio Code
Top answer
1 of 2
7

There is a bug for this. The link is thus: https://bugs.xdebug.org/view.php?id=1593

Which describes that you need to use Xdebug 2.7.0beta1 for now.

2 of 2
0

Hannibal is correct, but his answer is a bit terse so I want to expand on it a bit.

This is a XDebug bug for PHP 7.3.x so you'll need to install XDebug 2.7.0beta1:

$ pecl install xdebug-2.7.0beta1

Since I installed the latest PHP version using Homebrew, the XDebug installation actually threw two mkdir() errors. This was because there was already a pecl symlink in Homebrew's PHP directory.

First I wanted to verify that, so I ran $ ls -al /usr/local/Cellar/php/<YOUR_PHP_VERSION_NUMBER>

If you have any doubt about your PHP version, it should be in the pecl installation log and listed right alongside the mkdir() errors.

Once I confirmed that there was already a symlink there, I simply removed it:

$ rm /usr/local/Cellar/php/<YOUR_PHP_VERSION_NUMBER>/pecl

After I did that, I ran the install again and it worked smoothly.

Of course, $ php --ini showed errors, so I had to configure PHP properly. Gabor Javorsky actually wrote a great article which includes how to ensure XDebug gets loaded correctly and it worked perfectly for me. See Step 2 in his article here: https://javorszky.co.uk/2018/05/03/getting-xdebug-working-on-php-7-2-and-homebrew/.

Don't forget to reload PHP after tweaking your config, which for me was:

$ brew services stop [email protected] && brew services start [email protected]

After that, $ php --ini should show no errors!

Discussions

php - Installing XDebug with Mac OS 10.9 and XAMPP - Stack Overflow
I'm getting an headache with XDebug, I can't install it. I download the source in the official site : git clone git://github.com/xdebug/xdebug.git then, I know I have a preinstalled version of PHP More on stackoverflow.com
🌐 stackoverflow.com
May 29, 2017
macos - PHP - installing Xdebug on Mac with XAMPP (Unix File) - Stack Overflow
I have a trouble installing Xdebug on my PHP project. I am on macOS Monterey M1 and I am using XAMPP for launching project on PHP version 7.4.28. I followed the instructions given on their official More on stackoverflow.com
🌐 stackoverflow.com
May 13, 2022
php - XAMPP-VM Mac OS Mojave wordpress debugging using XDebug - WordPress Development Stack Exchange
Someone please point me to a knowldge article or information on how to setup Xdebug on XAMPP-VM Mac OS in particular. The dev configuration: XAMPP-VM Mac OS Mojave 10.14.6 VScode with PHP debug pl... More on wordpress.stackexchange.com
🌐 wordpress.stackexchange.com
September 17, 2019
Installing xDebug on Mac OSX with AMPPS
Probably quite a useful article for folks that aren't yet familiar with the disadvantages of running your development stack on OS X (unless your production stack is on OS X I guess...) - however I must stress it would be better for folks to use something like Vagrant / Docker to run a virtualised environment that matches your production environment. More on reddit.com
🌐 r/PHP
8
3
February 9, 2016
🌐
Juffalow
juffalow.com › blog › php › how-to-install-xdebug-on-macos-xampp
How to install XDebug on MacOS (XAMPP) | Matej Jelluš
March 1, 2019 - When you want to create codecoverage report with phpunit, you need to have XDebug installed otherwise you get just error "No code coverage driver is available". I successfully installed it on Windows but I had lot of issues installing it on MacOS. check lot of websites and see that there is still new and new issue ... MacOS has php installed with xcode, but I needed to use newer version I am already using with XAMPP.
🌐
Medium
appdaily.medium.com › how-to-install-xdebug-for-xampp-on-macos-4cd4a0e950b1
How to Install XDebug for XAMPP on MacOS | by Tech Tip Zone | Medium
September 25, 2024 - For macOS, you will need to copy that file into the XAMPP extension folder. Typically, the XAMPP folder will look like this: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-xxxxxx/ Just replace ‘xxxxxx’ with the actual ...
🌐
Xdebug
xdebug.org › docs › install
Xdebug: Documentation » Installation
You can install Xdebug through PECL on Linux and on macOS with Homebrew available.
🌐
Jimfrenette
jimfrenette.com › 2016 › 03 › xdebug-for-xampp-on-os-x
Xdebug for XAMPP on OS X | JimFrenette.com
./configure --enable-xdebug --with-php-config=/Applications/XAMPP/xamppfiles/bin/php-config ... In the Tailored Installation Instructions from xdebug.org, locate the step after make that contains the cp command and paths for copying the xdebug.so extension file into XAMPP, for example,
🌐
Stack Overflow
stackoverflow.com › questions › 25026022 › installing-xdebug-with-mac-os-10-9-and-xampp
php - Installing XDebug with Mac OS 10.9 and XAMPP - Stack Overflow
May 29, 2017 - You can used xdebug default. edited in /Applications/XAMPP/xamppfiles/etc/php.ini assigned the location of xdebug.so to zend_extension
Find elsewhere
🌐
JONATHANS BLOG
jonathansblog.co.uk › setting-up-xmapp-on-a-mac-with-xdebug
Setting up XMAPP on a mac with xdebug Development JONATHANS BLOG
March 14, 2019 - You will now be able to use any debugger that works with xdebug – eclipse has built in debugging, so does netbeans. macGDBp is good too =) Tags: Developer, Directory, Eclipse, Finder, Folder, Install, Local, Location, Mac, Open, Osx, Password, Php, Root, Save, Scroll, Sure, Svn, Time, Version, Work, Xampp...
🌐
Medium
medium.com › @sagelangjue › installing-xdebug-for-xampp-on-mac-m1-with-vs-code-c75c173bc5ba
Installing Xdebug for XAMPP on MAC(m1) with vs code | by Sage | Medium
November 29, 2024 - This tutorial guides you through the process of installing Xdebug on macOS (M1) and configuring it within XAMPP, allowing for efficient…
🌐
Xdebug
xdebug.org › download
Xdebug: Downloads
Please refer to the installation instructions on how to install Xdebug · Xdebug is hosted in GIT. The source code can be browsed through GitHub and can be checked out with:
🌐
Davidperezgar
davidperezgar.com › en › blog › how-install-configure-xdebug-mac-debug-php-apps
How to install and configure Xdebug on Mac to debug your PHP applications
November 21, 2024 - Learn how to install Xdebug on your Mac step by step using Homebrew. Set up this powerful tool to debug your PHP code efficiently and optimize your workflow as a developer. 🚀
🌐
GitHub
gist.github.com › odan › 1abe76d373a9cbb15bed
Installing Xdebug for XAMPP with PHP 7.x
Install the PHP Debugger for Brackets. ... Add XDEBUG_SESSION_START=PHPSTORM as query parameter to the url, e.g. ... @odan : For XAMPP Version 7.3.4 you need to download the (Zend) Thread Safe (TS/ZTS) version: https://xdebug.org/files/php_xdebug-2.7.2-7.3-vc15-x86_64.dll
🌐
Medium
olivierpicault.medium.com › installing-xdebug-on-mac-os-x-1f60df0a7317
Installing Xdebug on Mac OS X. Everything is explained here… | by Olivier Picault | Medium
November 25, 2020 - Installing Xdebug on Mac OS X Everything is explained here: https://xdebug.org/docs/install but this page is easier to follow. Looks like brew install php70-xdebug is not working anymore. So here is …
🌐
Olineit
blog.olineit.com › 2023 › 09 › how-to-configure-xdebug-in-mac-with.html
Oline IT:Blog: How to Configure Xdebug in Mac with XAMPP
On your Mac, we only support installations with 'homebrew', and brew install php && brew install autoconf should pull in the right packages. Unpack the downloaded file with tar -xvzf xdebug-3.2.2.tgz ...
🌐
YouTube
youtube.com › watch
The Easiest Way to get Xdebug on a Fresh macOS Install - YouTube
Getting started with Xdebug can be daunting and frustrating. But it doesn't have to be!Let's take it step by step. First things first - lets get Xdebug insta...
Published   June 28, 2020
🌐
To The New
tothenew.com › home › how to install xdebug 3 on macos
How to install Xdebug 3 on MacOS | TO THE NEW Blog
August 30, 2023 - running: find "/private/tmp/pear/temp/pear-build-rootO1x6b4/install-xdebug-3.2.2" | xargs ls -dils 15982931 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 /private/tmp/pear/temp/pear-build-rootO1x6b4/install-xdebug-3.2.2 15983635 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 /private/tmp/pear/temp/pear-build-rootO1x6b4/install-xdebug-3.2.2/opt 15983636 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 /private/tmp/pear/temp/pear-build-rootO1x6b4/install-xdebug-3.2.2/opt/homebrew 15983637 0 drwxr-xr-x 3 root wheel 96 Aug 9 11:25 /private/tmp/pear/temp/pear-build-rootO1x6b4/install-xdebug-3.2.2/opt/homebrew/Cellar
🌐
YouTube
youtube.com › ksu365
How to Configure Xdebug in Mac with XAMPP - YouTube
https://xdebug.org/wizardThis page helps you finding which file to download, and how to configure PHP to get Xdebug running. Please paste the full output of ...
Published   September 6, 2023
Views   476
🌐
Stack Exchange
wordpress.stackexchange.com › questions › 348480 › xampp-vm-mac-os-mojave-wordpress-debugging-using-xdebug
php - XAMPP-VM Mac OS Mojave wordpress debugging using XDebug - WordPress Development Stack Exchange
September 17, 2019 - Someone please point me to a knowldge article or information on how to setup Xdebug on XAMPP-VM Mac OS in particular. ... Copied Xdebug.so to the extension folder inside XAMPP-VM & configured php.ini for xdebug values as below · [XDebug] xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_connect_back=on zend_extension="/opt/lampp/lib/php/extensions/xdebug/xdebug.so" ... Added debug configuration to my VScode with php debug plugin installed.