How do I configure Visual Studio 2022 to debug my Local WordPress site? The editor is recognizing php as a valid file type, but when I click debug, I get an error saying “Please select a valid startup item”.
I’m new to WordPress development and would really like to use Visual Studio to debug.
Open Visual Studio and then open the folder where Wordpress lives (Users/[username]/Local Sites/[site folder]), then click Debug (or even run).
Operating System (OS) and OS version:
Windows Server 2012 (also Windows-11)
Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
Not getting that far…
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.