Since vs code open-source and cross-platform, and many plug-ins, we intend to use both writing and debugging php vs code.
Configuring vs code + phpstudy of php debugging environment as follows:
1, the configuration phpstudy, other options menu -> php extensions and settings -> php extensions -> check xdebug
2, and then modify php.ini, you find the corresponding versions of php.ini in the php directory, [XDebug] to modify the contents of the directory zend_extension
Xdebug modify your path of the dll, as shown below
Special attention, to add the last two words.
Modify good restart after the Apache , see xdebug there is no configuration, you can check phpstudy in the phpinfo,
If there phpinfo xdebug it shows the xdebug php configuration successful.
3, configuration vs code
vs code, there are php debug plug-in, as long as the installation is like,
You must set the path to php.exe installed after
File -> Preferences -> Settings -> Extended -> php-> validate: executable path
Add the execution path php.ext:
![](https://img2018.cnblogs.com/blog/1395925/201906/1395925-20190628232917105-1482766958.png)