Installing and configuring xdebug for phpstorm

Hi there,

I am an instructor trying to find some clear, current instructions for loading and configuring xdebug to work with phpstorm on a mac. I have managed to set up xdebug on a windows system and all is working fine.  However, some of my students use MACs and I am not familiar enough with that world to get this done.  Seems like many of the posts online are out of date, referring to utilities that no longer exist.  I am not even sure how of the simplest way to load xdebug on a MAC such that it will work with PhpStorm.  

The environment is completely local - inplace web server loaded using XAMPP.  The projects are web rather than CLI and the preferred browser is Chrome.  I know this should be easy, but I have spent too many hours getting nowhere on this.  If someone can point me to one or two comprehensive guides that assume only that PhpStorm is properly installed with PHP 7 configured and working correctly, I would be most grateful.

David

0
1 comment

I am not even sure I am not even sure how of the simplest way to load xdebug on a MAC such that it will work with PhpStorm. such that it will work with PhpStorm.

You can just leave 'I am not even sure how of the simplest way to load xdebug on a MAC such' here because the complications have nothing to do with PhpStorm.

The main issue here is building the .so file. If you can do that successfully - go ahead, attaching it to the proper .ini file should not be difficult. https://juffalow.com/php/how-to-install-xdebug-on-macos-xampp

If you can't, you can go the other way and utilize PECL. Via Homebrew, install a PHP version similar to what Xdebug is using, the install Xdebug with PECL and use the resulting .so file for your XAMPP-based interpreter: https://thewebtier.com/php/install-enable-xdebug-with-php-v7-2-in-mac-osx/

0

Please sign in to leave a comment.