Originally from: http://www.cnblogs.com/CLR010/p/5276077.html
1, the first official website download vs code address: https://code.visualstudio.com/
2, install the extension Php-debug installation procedure See Https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-debug
Specifically: (ctrl+p) in the text box input "ext install Php-debug" Enter and so on will appear this extension
In the lower right corner there is a download button (for already downloaded so show X)
3. Configure user settings
Pop-up the following window and add "Php.validate.executablePath": "C:/wamp/bin/php/php5.5.12/php.exe" to the
4. Configure Debug
Select Listen for Xdebug
(Configuration file contents do not need to move)
5. Start Wampserver
6. Open the php file, press F9 on the specified line to set the breakpoint and start debugging
7, in the browser access can
Use vs code to write PHP and debug