這個問題也困惑了我很久 煩死了 今天看了qing師傅的博客 跟着安裝php
運行環境:瀏覽器
phpStorm 2018服務器
PHP 5.45 nts VC9phpstorm
本身以前裝一直沒裝起 原來是版本問題插件
下載地址:https://xdebug.org/download.phpdebug
3、配置phpstorm調試
1>.打開phpstorm,PHP>Debug 的設置,「Debug port」與「xdebug.remote_port」一致,而且容許外部鏈接(瀏覽器XDebug插件):orm
如圖host配置成你剛纔設置php配置文件中 xdebug.remote_host="localhost"對應的參數,注意端口默認80,不須要改變,debugger選擇xdebug便可blog
2>.PHP>Debug 的設置,配置端口:
3>.設置服務器調試配置,Run>Web Server Debug Validation:
4、安裝Chrome的XDebug插件,參考連接:Install Xdebug Helper
5、在phpstorm中使用xdebug進行調試:
差很少就是這樣,等具體實踐了再寫.....