phpinfo() 中的 xdebug 未显示 [英] xdebug in phpinfo() is not showing
问题描述
我真的花了一整天时间来解决 phpinfo()
上没有显示的 xdebug 问题.我已经检查过文件路径是否正确.
I have literally spent an entire day on solving the issue for xdebug not showing on phpinfo()
. I've checked the file path is correct.
推荐答案
Windows 7 Home Premium,关于 xdebug 的 php.ini 文件的内容是:
Windows 7 Home Premium, the contents of the php.ini file regarding xdebug are :
;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 = 1
;xdebug.remote_handler = "dbgp"
;xdebug.remote_host = "127.0.0.1"
;xdebug.remote_port = 9000
;xdebug.trace_output_dir = "C:\xampp\tmp"
php.ini 文件的完整路径为:C:\xampp\php\php.ini
the full path of the php.ini file is: C:\xampp\php\php.ini
我通过打开 XAMPP、配置和 PHP 将 ;xdebug.remote.enable 从 0 更改为 1,然后它从 phpinfo 中消失了.
I changed the ;xdebug.remote.enable from 0 to 1 by opening the XAMPP and then config and then PHP, and then it disappeared from phpinfo.
我在控制台和网络服务器中都运行 phpinfo
I run phpinfo both in console and in webserver
这篇关于phpinfo() 中的 xdebug 未显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!