Step One: Download and configuration phpstudy
I use the latest version : https://www.xp.cn/
According to their need to download the appropriate version, here I use the windows version
After downloaded, run the interface is
General development on their computers, then only need to open these two
Then I modified version of php,
I modified to php7.3.4nts, then later there is a Settings button, we have set the inside of the expansion assembly debugging components inside XDebug open
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
Modify your xdebug dll path, as shown, is generally arranged after the edited automatically. If not, you can address yourself to see whether the installation location phpstudy file for you
Then here, phpstudy configuration is complete.
Step Two: Configure VSCode
vs code, there are php debug plug-ins, which extend as long as the input to the left VSCode php debug interface to install just fine, I installed it's good
You must set the path to php.exe installed after
File -> Preferences -> Settings -> Extended -> php-> validate: executable path
Add execution path to php.exe:
"php.validate.executablePath": "D:\\phpstudy_pro\\Extensions\\php\\php7.3.4nts\\php.exe",
Php.exe find the appropriate path based on php version of their choice, and then save and reboot VSCode
Then ended.
During the configuration process if the problem occurs, it may be that you configure a setting is not saved or need to reboot VSCode php.exe configuration environment variable.
You any problems during configuration, you can comment below. I will see it will promptly get back to you promptly