How to configure php development environment vscode

3. download and install VSCode
https://code.visualstudio.com/
download is a compressed packet, and extract it to a directory.

4. Install the plug-in debugging vscode in
the right column click on the extension, input xdebug, out of the php debug, click Install.

In the menu bar: File -> Preferences -> configuration, add a line to the right of the new configuration:
"php.validate.executablePath": "D: /xampp/php/php.exe"


5. Verify that the configuration is successful
create a new folder php, create a new folder test.php file. Attention must be to open as folders to successfully set breakpoints, single file is invalid.

Set breakpoints, and then start debugging.
Click the gear, select php-> for Xdebug select the listen
(configuration file content does not need to move)
in the cmd window, netstat -an execution to see if the machine has a monitor port 9000.

Guess you like

Origin www.cnblogs.com/linqingvoe/p/10965714.html