marcimat
Repos
3
Followers
25
Following
10

Events

issue comment
Confusing XDBUG documentation

I think that documentation isn’t up to date with version 3 of XDebug ?

  • https://devilbox.readthedocs.io/en/latest/intermediate/configure-php-xdebug/macos/vscode.html#configure-php-ini
  • https://github.com/cytopia/devilbox/blob/master/docs/intermediate/configure-php-xdebug/macos/vscode.rst#configure-php-ini (can be seen in raw text)

This doc tells us for example to use xdebug.remote_host=10.254.254.254 config. But it has been renamed in version 3 in xdebug.client_host=10.254.254.254.

https://xdebug.org/docs/upgrade_guide

To work properly I think for me in vscode / macos, I had to use

xdebug.mode  = debug
xdebug.start_with_request = yes

; The MacOS way
#xdebug.discover_client_host=0
xdebug.client_host=10.254.254.254
xdebug.client_port=9003

; idekey value is specific to Visual Studio Code
xdebug.idekey=vsc

Note that

  • I use port 9003 (new default for xdebug 3)
  • I use idekey vsc which is my default in vscode (and not VSCODE)
Created at 1 month ago