DEV Community

Discussion on: How to debug PHP using Visual Studio Code

Collapse
 
petersweetandsour profile image
Peter Varley • Edited

Marcos, I regret you lost me at "Let's go to the Debug section and configure a new launch file." Is this in VS Code? Debug section of what? I have version 1.46.1 and don't see anything obviously relevant but I'll keep looking. In any case, some clarification would be helpful for other readers.

Update: it works but I did not have to configure any launch file. I was hopeful when I saw In VSCode, that you can go down through the menu File > Preferences > Settings > Extensions but PHP Debug is not listed although it is listed as being "Enabled" under File > Preferences > Extensions". I restarted VSCode thinking that might be necessary but it made no discernable difference. However, I was able to go Run > Start Debugging and processing did stop at a breakpoint I set with the variables listed on the left.