Visual Studio Code is a lightweight and powerful editor that supports Windows,os x and Linux. Built-in JavaScript, typescript, and node. JS support, and a rich plug-in ecosystem to support C + +, C #, Python, PHP and more in other languages by installing plugins
This article is for you to share the specific steps of Vscode to configure the PHP development environment, through the script of the small-compiled test
Preparatory work:
1. Download the visual Studio Code
2. Download XAMPP, because the package is easy, for personal use is very convenient
3. Download Xdebug, remember to correspond to PHP version, otherwise invalid
Steps:
1. Installing PHP-related plugins in visual Studio code
2. Configure PHP Paths in Preferences
3. Put the xdebug DLL in the PHP related directory
4. At the end of the php.ini, add the following code
[Xdebug]
zend_extension= "C:/xampp/php/ext/php_xdebug-2.5.5-7.1-vc14.dll"
xdebug.remote_enable = 1
Xdebug.remote_autostart = 1
5. Finally, you can set the breakpoint debugging in the Vscode, note, must be opened in the form of folders to successfully set breakpoints debugging, a single file is invalid