PHP7 以上版本 使用 xdebug 踩坑

chenjq發表於2019-07-29

php7 以上版本使用 xdebug

不要迷信xdebug 官網的那個 custom installation instructions. 不要迷信xdebug 官網的那個 custom installation instructions. 不要迷信xdebug 官網的那個 custom installation instructions. 
重要的事情說N遍,本屌絲被這個坑死 了,坑的我死去活來,大半年沒有xdebug,站擼程式碼都不順暢了,只能躺擼……,使用 custom installation instructions 下載的xdebug.dll雖然能安裝成功,在phpinfo裡面也能見到,但是斷點的時候就是進入不了斷點,而且斷點的頁面一直pending 卡死,錯誤日誌裡面最多就提示個超時,尼瑪,根本就不知道什麼原因
在此填坑    要注意 要注意 要注意
建議,直接自己根據 php版本下載 對應的xdebug,比如我的php 7.1.13-nts 使用官網 custom installation instructions 方式下載的xdebug 是 php_xdebug-2.7.2-7.1-vc14-nts.dll 而且安裝成功,但根本就沒屌用,進入不了斷點 還是自己手動下的 php_xdebug-2.6.0-7.1-vc14-nts.dll 才是正宮,其它都是狗娘樣的婊砸