Skip to content

Instantly share code, notes, and snippets.

Created February 26, 2021 11:39
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Minimal xdebug config with Xdebug 3
xdebug.mode = debug
xdebug.start_with_request = yes
Copy link

mahype commented Feb 26, 2021

Install Xdebug with PECL.

pecl install xdebug

Other ways to install Xdebug:

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