php 安裝xdebug 擴充套件失敗

2021-10-03 17:09:39 字數 848 閱讀 4963

通過 phpinfo(); 檢視當前php版本

在php.ini 中新增配置

xdebug.profiler_output_dir=

"d:/phpstudy/phptutorial/tmp/xdebug"

xdebug.trace_output_dir=

"d:/phpstudy/phptutorial/tmp/xdebug"

zend_extension=

"php_xdebug-2.9.2-7.2-vc15-nts-x86_64"

xdebug.remote_enable =

true

xdebug.remote_handler = dbgp

xdebug.remote_host= localhost

xdebug.remote_port =

9000

xdebug.profiler_enable = on

xdebug.idekey =

phpstorm

重啟伺服器

在 phpnfo() 中 查詢(ctrl+f)xdebug, 查詢到則安裝擴充套件成功

如果安裝不成功注意一下幾點

修改配置後是否重啟了伺服器

檢查 zend_extension 引數的路徑以及檔名是否正確

檢視php 日誌檔案 error_log 中是否有報錯,檢視報錯內容

如果還是安裝不成功則 ctrl+a 全部複製 phpinfo() 中的內容

到xdebug官網中貼上,

php擴充套件 xdebug安裝

xdebug在linux下的安裝教程 wget 2 解壓縮 tar zxvf xdebug 2.3.3.tgz 3 進入解壓的目錄 cd xdebug 2.3.3 4 建立外掛程式模組 phpize 5 配置 configure with php config usr local php bin p...

PHP 安裝 Xdebug 擴充套件(一)

1.xdebug 簡介 xdebug 是乙個開放源 的 php 程式偵錯程式 即乙個debug工具 可以用來跟蹤,除錯和分析php程式的執行狀況。當前最新版本為 xdebug 2.5.0。2.xdebug 相關資料 官網 官網文件 docs 3.選擇合適的版本 如果官方的文件看不懂,可以繼續往下看。...

php新增xdebug擴充套件

找到對應php版本的 xdebug 後面帶 ts 的為執行緒安全,本機環境為 win7 64 php 5.5.1 win32 vc11 x64 xdebug 2.3.3 php 5.5 vc11 ts 64 bit 安裝 dll檔案 這裡是php xdebug 2.3.3 5.5 vc11 x86 ...