phptorm、chrome安裝調試 xdebug

1、檢測php 版本,添加 .dll 文件

https://xdebug.org/wizard.php

這個頁面可以讓你見自己phpinfo()輸出來的內容,複製過來,然後通過analyse判斷出需要的資源。以及如配置信息等。

下載安裝相應的 .dll 文件,放到相應的目錄下。


2、爲chrome 瀏覽器安裝 xdebug helper 插件

百度搜索 xdebug helper ,自己查怎麼安裝這個插件


3、配置  xdebug helper 

在瀏覽器中,右鍵點擊xdebug helper圖標 ,選擇‘選項’,選phpstorm


4、php.ini中修改

注意 .dll 和 端口號(全稱的端口號要統一!!!)

[xdebug]
zend_extension = 、、、、、.dll
xdebug.remote_enable = On
xdebug.remote_handler = dbgp
xdebug.remote_host= localhost
xdebug.remote_port = 9001
xdebug.idekey = PHPSTORM


5、配置phpstorm

5.1、phpstorm中的配置

file > setting  > languages&frameworks > PHP





5.2、具體項目中的配置

添加一個調試的實例



6、其他

簡單編寫,具體怎麼啓動網上大把。有時間在完善、、、、




發佈了66 篇原創文章 · 獲贊 9 · 訪問量 10萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章