Hi @jim_hubbard
One of our Devs tested getting this working on a Windows machine with Local 7.2.1 and VSCode. They were able to get it working just by following the steps on the Xdebug Add-On page. The warning did pop up regarding not being able to validate due to an invalid PHP executable, but that’s able to be closed out and ignored.
Here are the steps taken for the initial install:
- Install Local
- Install the XDebug VSCode plugin
- Create a new preferred site
- Click the
Add Run Configuration to VS Codebutton under theToolstab - Enable XDebug on the site in question
- Open VSCode
- Install the PHP Debug extension
- Add the site’s
/app/publicdirectory to the VSCode workspace - Verify the
launch.jsonconfig exists within your site’s.vscodefolder (from step #4) - Add a breakpoint (I put mine in the
wp-config.phpfile where theDB_NAMEis defined) - Navigate to the VSCode debug tab and start listening for XDebug using the newly created config
- Start your site in Local and verify VSCode catches at your breakpoint
Let us know if that helps or what other questions or issues you might have here!