VS Code 调试 PHP有关配置
生活随笔
收集整理的這篇文章主要介紹了
VS Code 调试 PHP有关配置
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
?一、安裝VS CODE 、 WampServer
二、用VS Code 打開(kāi)php項(xiàng)目后,提示?"Cannot validate since no PHP executable is set. Use the setting 'php.validate.executablePath' to configure the PHP executable."
? ? ? 解決方法如下:
? ? ? 在“文件”-“首選項(xiàng)”-“設(shè)置”下添加:
? ? ??
三、在VSCode上安裝:PHP Debug插件:
? ? ?
四、安裝 XDebug
?a.新建phpInfo.php文件,如圖
b.運(yùn)行,CTRL+A全選,并粘貼到 https://xdebug.org/wizard.php
?
??
?最后在"C:\wamp\bin\apache\apache2.4.23\bin\php.ini" ?內(nèi)修改為
xdebug.remote_enable = 1 xdebug.remote_autostart = 1五、開(kāi)始調(diào)試,在"C:\wamp\www\index.php"內(nèi)設(shè)置斷點(diǎn),瀏覽器訪問(wèn)
成功進(jìn)入!!
??
轉(zhuǎn)載于:https://www.cnblogs.com/phli/p/6956398.html
總結(jié)
以上是生活随笔為你收集整理的VS Code 调试 PHP有关配置的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 女性做梦梦到蛇是什么意思
- 下一篇: PHP gd库 验证码