Skip to content

Instantly share code, notes, and snippets.

@mahype
Created February 26, 2021 11:39
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mahype/a9301dbb084204206ec94380998d7c6e to your computer and use it in GitHub Desktop.
Save mahype/a9301dbb084204206ec94380998d7c6e to your computer and use it in GitHub Desktop.
Minimal xdebug config with Xdebug 3
zend_extension="xdebug.so"
[xdebug]
xdebug.mode = debug
xdebug.start_with_request = yes
@mahype
Copy link
Author

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