Setup xdebug 3.0 with PhpStorm
How to setup xdebug 3.0 with PhpStorm on macOS Big Sur:
Assuming you have already install php@7.4, I am going to install xdebug.
pecl install --force xdebug
This will add [zend_extension="xdebug.so"] in you php.ini file, just add few more setting below that.
[xdebug]
zend_extension="xdebug.so"
xdebug.mode=debug
xdebug.client_host=127.0.0.1
In order to locate your php.ini file just type php --ini in your terminal
Now, lets check the PhpStorm configuration for the same, we have to just make sure that default changes are there nothing else, please refer below image for the reference:
Navigate to PhpStorm >> preferences...
Get Xdebug helper extensions for your browser and set the following settings and click on save button.
Now in PhpStorm let click on icon to start listening the debug connection.
Set any break points in code base and reload the site from browser, there should be pop up coming up for new connection, accept it and continue debugging.



Comments
Post a Comment
There is comment posted on your blog, chandu7929@blogpost.com