2015-07-21 131 views
-3

我已经花了整整一天的时间解决了xdebug在phpinfo()上没有显示的问题。我检查过的文件路径是正确的。phpinfo()中的xdebug没有显示

+1

你需要给更多的信息.​​.....按照安装信息http://xdebug.org/docs/install,检查哪里出了问题 – donald123

+0

什么操作系统在嘛?什么是你编辑的php.ini文件的完整文件路径?你改变了什么?您是否修改了控制台或Web服务器的ini文件?你是在控制台还是Web服务器上运行'phpinfo()'? – halfer

+0

Windows 7家庭高级版 –

回答

0

Windows 7家庭高级版, 关于XDebug的php.ini文件的内容是:

;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

我将xdebug.remote.enable从0更改为1,方法是打开XAMPP,然后配置然后PHP,然后从phpinfo中消失。

我跑的phpinfo都在控制台的Web服务器