
There is no straightforward way in Visual Studio to do those things today, but in this month’s experiment we’re going to change that. And again, sometimes comparing our local changes to previous versions from our Git commit history. Sometimes, even comparing the content of the clipboard with a file on disk. UPDATE March 2021: xdebug3 is now out ( ) and has some changes from v2 most notably the default port number has changed.As developers, we often need to compare two files to find the differences. If you're aren't using vvv, you may need to change this to something else. You need to then go into your add-on's preferences and here, you set the IDE key to VVVDEBUG.

If you're not using VVV, you could you use this way to find out if the IDE KEY is already set to another value and you may need to manually set the IDEKEY in your xdebug.ini to something else as did Using VVV (varying vagrant vagrants), the IDE KEY is already preset to "VVVDEBUG" with (you can confirm this by placing phpinfo() in a php file of the site you're developing) it should return the IDE Key used by xdebug.
In my case, the IDE KEY is configured in the preferences in your browser's add-on that you're using. The IDE KEY doesn't need to be configured within VS Code (unlike phpstorm). (ref: ).Īnd most importantly, ensure that your IDE KEY is set properly. I think this may depend on your vagrant setup.

The disadvantage of this is that if you work with multiple websites, you'll have to change this for each one. "/srv/www/plain/public_html": "/path/to/my/vvv/www/plain/public_html" I put the absolute paths for the path mappings in launch.json Try setting xdebug.remote_host= "vvv.test" (for VVV users, set this in vvv/config/php-config/xdebug.ini )

Thank you so much for putting this together, this got me 90% of the way there for a ubuntu 18.04 user who uses VVV (varying vagrant vagrants) to manage my VM, firefox, and VS Code.Ī couple other tips for users who are struggling to get it set up, this is what worked for me, given my above setup, some may be specific to VVV.
