我该如何安装xdebug?

时间:2013-08-16 07:16:46

标签: php xdebug

我想安装xdebug。我遇到了问题。我有下载xdebug的dll文件。当我安装xdebug时,phpinfo();没有显示xdebug。所以任何人都可以帮我做到这一点。我在ext文件夹中放置xdebug.dll文件后也编辑了php.ini文件。 是否有必要安装zend以使用xdebug? 所以请帮忙

[XDebug] 
;zend_extension = "C:\xampp\php\ext\php_xdebug.dll" 
;xdebug.profiler_append = 0 ;xdebug.profiler_enable = 1 
;xdebug.profiler_enable_trigger = 0 
;xdebug.profiler_output_dir = "C:\xampp\tmp" 
;xdebug.profiler_output_name = "cachegrind.out.%t-%s" 
;xdebug.remote_enable = 0 
;xdebug.remote_handler = "dbgp" 
;xdebug.remote_host = "127.0.0.1" 
;xdebug.trace_output_dir = "C:\xampp\tmp"

我在这里安装了xdebug.dll文件:C:\xampp\php\ext\php_xdebug.dll

1 个答案:

答案 0 :(得分:2)

显然你没有启用调试器:

请注意;文件的[XDEBUG]部分中条目开头的所有php.ini个字符。他们将该行标记为注释,因为处于活动状态。所以最后你确实添加了一个部分,但没有任何有效的条目!

删除(部分)所有手册中提到的这些分号。然后通过调用phpinfo脚本再次测试!