PHP的xdebug除錯安裝

2021-09-25 18:43:04 字數 1382 閱讀 2448

安裝php對應版本xdebug擴充套件

1、通過phpinfo確定php的擴充套件檔案

architecture	x86 是32位的

zend extension build api320160303,nts,vc14是沒有ts的vc14

php 7.1 vc14 (32 bit)

3、配置php.ini檔案

底部新增

列印phpinfo()檢視xdebug

xdebug_support

enabled

version

2.8.0beta1

ide key

18748

[xdebug]

zend_extension=c:\phpstudy\phptutorial\php\php-7.1.13-nts\ext\php_xdebug.dll

xdebug.profiler_enable = 1

xdebug.profiler_enable_trigger = 0

xdebug.profiler_output_dir ="c:\phpstudy\phptutorial\tmp\xdebug"

xdebug.trace_output_dir ="c:\phpstudy\phptutorial\tmp\xdebug"

xdebug.profiler_output_name = "cache.out.%t-%s"

xdebug.remote_enable = 1

xdebug.remote_handler = "dbgp"

xdebug.remote_host = "127.0.0.1"

xdebug.remote_port = 9018

xdebug.remote_mode = "req"

xdebug.idekey = phpstorm

設定phpstorm的xdebug

1、file->setting->languages&frameworks->php

設定cli interpreter為對應php版本的exe路徑

2、file->setting->languages&frameworks->php->debug設定xdebug的debug port介面為9018

3、file->setting->languages&frameworks->php->debug->dbgp proxy設定ide為phpstorm,host為localhost,port為80

4、file->setting->languages&frameworks->php->servers設定localhost:80 xdebug

如此,便可以打斷點除錯程式了。

安裝xdebug到php,除錯php指令碼

xdebug是乙個開源的php偵錯程式,以php模組的形式載入並被使用。安裝xdebug到php中 拷貝到php安裝目錄下的ext目錄中。其次,xdebug配置 開啟php.ini 在最後一行加入以下配置 配置說明已經做好注釋 載入xdebug zend extension ts c php ext...

PHP安裝Xdebug除錯工具

安裝xdebug 2.將它重新命名為php xdebug.dll,並複製到c php5.3 ext目錄下 3.更改php.ini檔案 把下面的內容加入到檔案最後就可以了。xdebug zend extension c php5.3 ext php xdebug.dll xdebug.profiler...

PHP安裝Xdebug除錯工具

安裝xdebug 2.將它重新命名為php xdebug.dll,並複製到c php5.3 ext目錄下 3.更改php.ini檔案 把下面的內容加入到檔案最後就可以了。xdebug zend extension c php5.3 ext php xdebug.dll xdebug.profiler...