Skip to content

Instantly share code, notes, and snippets.

@mahype

mahype/php.ini

Created Feb 26, 2021
Embed
What would you like to do?
Minimal xdebug config with Xdebug 3
zend_extension="xdebug.so"
[xdebug]
xdebug.mode = debug
xdebug.start_with_request = yes
@mahype

This comment has been minimized.

Copy link
Owner Author

@mahype mahype commented Feb 26, 2021

Install Xdebug with PECL.

pecl install xdebug

Other ways to install Xdebug:
https://xdebug.org/docs/install

Add the php.ini lines from above to you php.ini. If you dont know where your php.ini is, just type php -i and take a look for php.ini or type php -i | grep php.ini go get the information.

Restart the server.

Set the debugging port to 9003. This is the the standard Xdebug port since Xdebug 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment