vscode php無法調試怎么辦?vscode調試php的方法
xdebug調試vscode
下載xdebug.dll擴展庫
php.ini配置
?[XDebug] ?xdebug.remote_enable?=?1 ?xdebug.remote_autostart?=?1 ?zend_extension="D:phpstudy-2018PHPTutorialphpphp-5.5.38extphp_xdebug.dll"
?
立即學習“PHP免費學習筆記(深入)”;
vscode 安裝插件 php debug,php xdebug?
??????add?configuration: ???????????{ ??????????????"name":?"Listen?for?XDebug", ??????????????"type":?"php", ??????????????"request":?"launch", ??????????????"port":?9000 ??????????}, ??????????{ ??????????????"name":?"Launch?currently?open?script", ?????????????"type":?"php", ?????????????"request":?"launch", ?????????????"program":?"${file}", ???????????"cwd":?"${fileDirname}", ?????????????"port":?9000 ?????????}
?
立即學習“PHP免費學習筆記(深入)”;
調試時有兩個選項:選擇”Listen for XDebug”標示自己打開瀏覽器,輸入網址-進入斷點。
選擇”Launch currently open script”標示調試當前文件。
推薦學習:vscode教程
? 版權聲明
文章版權歸作者所有,未經允許請勿轉載。
THE END
喜歡就支持一下吧
相關推薦