Home / Tutorials / How to install Xdebug extension on macOS Big Sur
How to install Xdebug extension on macOS Big Sur cover

How to install Xdebug extension on macOS Big Sur

12 mins

2K

3 years ago

0 comments

Average

The Xdebug PHP extension is essential for debugging PHP projects and in this post, we'll learn how to install it on the macOS system.

If you have not installed the latest version of PHP do refer to this post on How to install PHP 8 on macOS Big Sur using Homebrew. Otherwise, if you have different PHP versions for your different projects, do refer to this post on How to easily switch between PHP versions on macOS?

Check if Xdebug is present


To check if Xdebug is present you can check it through the PHP version.
php -v
By right, if it's present then it will be printed on the terminal following the PHP version information.

Installing Xdebug Extension


To install the extension we'll be using the PECL command and the command is as follow.
pecl install xdebug
php -v
By right the output will be displayed after the PHP info with the Xdebug extension at the end of the line.
notion avatar

Ahmad Aziz

Week-end developer currently experimenting with web, mobile, and all things programming.

Support Us

If you like our tutorial, support us by being our Patreon or buy us some coffee ☕️

Related Tutorials

Code Snippets

Collection of Laravel, AlpineJS, VueJS, Tailwind CSS, Flutter snippets and more. New snippets added every day.
View Snippets

Code Components

Collection of Tailwind CSS components for everyone to use. Browse all of the components that's right for your web projects
View Components

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this