VSCODE与PHP XDBUG 最详细的过程
一:VSCODE先在用户配置:
“php.validate.executablePath”: “D:/laragon/laragon/bin/php/php-7.2.29-Win32-VC15-x64/php.exe”,
二:按f5,会让你配置一个launch.json配置文件 用默认的就好
三:
四:PHP版本下载地址
五:phpdebug下载地址
六:下载好了以后
七:在PHP.INI里配置
[xdebug]
zend_extension =“D:\laragon\laragon\bin\php\php-7.2.29-Win32-VC15-x64\7.2ts64.dll”
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.romote_host=localhost
xdebug.remote_port=9000 //关键在于这个端口号要和launch.json配置的端口号对应起来〿
“editor.formatOnType”: true,
“editor.formatOnSave”: true,