简体   繁体   English

Xdebug不显示Firefox在Firefox中的输出

[英]Xdebug not showing output in firefox in php

someone told me to install xdebug so that i can get colored output with var_dump for php. 有人告诉我安装xdebug以便我可以使用var_dump for php获得彩色输出。

I installed xdebug from here and edited the ini file 我从这里安装xdebug并编辑了ini文件

http://xdebug.org/docs/install

The output of php -m php -m的输出

wddx
xdebug
xml
xmlreader
xmlrpc
xmlwriter
xsl
zip
zlib

[Zend Modules]
Xdebug

But still my var_dump ouput is not colored 但是我的var_dump输出仍然没有颜色

Do i need to do something else as well in firefox 我是否还需要在Firefox中做其他事情

You don't have to do anything on any browser since xdebug is working on the server. 由于xdebug在服务器上运行,因此您无需在任何浏览器上执行任何操作。 Although, you have to be sure that you have set things right. 虽然,您必须确保设置正确。

In your php.ini, be sure that html_errors is on. 在您的php.ini中,确保html_errors已打开。

Below is my xdebug configuration, so you can compare things. 以下是我的xdebug配置,因此您可以进行比较。 But my system may not have the same structure as yours, so check where do you have your zend_extension. 但是我的系统可能与您的系统没有相同的结构,因此请检查您的zend_extension在哪里。 I have this configuration in a file called xdebug.ini on /etc/php/apache2-php5/ext/ . 我在/ etc / php / apache2-php5 / ext /上名为xdebug.ini的文件中有此配置。 You may have the configuration on a separate file, like this, or you can add it to your php.ini, doesn't matter. 您可以像这样在单独的文件上进行配置,也可以将其添加到php.ini中,这没有关系。

zend_extension=/usr/lib64/php5.5/lib/extensions/no-debug-zts-20121212/xdebug.so
xdebug.auto_trace="1"
xdebug.trace_output_dir="/var/log/xdebug"
xdebug.trace_output_name="trace.%s_%t"
xdebug.trace_format="0"
xdebug.trace_options="1"
xdebug.collect_assignments="1"
xdebug.collect_includes="1"
xdebug.collect_params="4"
xdebug.collect_return="0"
xdebug.collect_vars="1"
xdebug.default_enable="1"
xdebug.extended_info="1"
xdebug.manual_url="http://www.php.net"
xdebug.max_nesting_level="100"
xdebug.show_exception_trace="0"
xdebug.show_local_vars="1"
xdebug.show_mem_delta="1"
xdebug.dump.COOKIE=false
xdebug.dump.ENV=false
xdebug.dump.FILES=false
xdebug.dump.GET="NULL"
xdebug.dump.POST="NULL"
xdebug.dump.REQUEST="NULL"
xdebug.dump.SERVER="NULL"
xdebug.dump.SESSION="NULL"
xdebug.dump_globals="1"
xdebug.dump_once="1"
xdebug.dump_undefined="1"
xdebug.pror_enable="0"
xdebug.profiler_enable="1"
xdebug.profiler_output_dir="/var/log/xdebug"
xdebug.profiler_output_name="%s_%t"
xdebug.profiler_enable_trigger="0"
xdebug.profiler_append="0"
xdebug.profiler_aggregate="0"
xdebug.remote_enable="On"
xdebug.remote_handler="dbgp"
xdebug.remote_host="localhost"
xdebug.remote_mode="req"
xdebug.remote_port="9000"
xdebug.remote_autostart="0"
xdebug.remote_log=""
xdebug.idekey=""
xdebug.var_display_max_data="16384"
xdebug.var_display_max_depth="10"
xdebug.var_display_max_children="512"
xdebug.max_nesting_level="100"
xdebug.overload_var_dump="1"
xdebug.scream="1"
xdebug.cli_color="1"
xdebug.coverage_enable="1"

Of course, remember to restart apache after doing changes on xdebug.ini or php.ini 当然,请记住在xdebug.ini或php.ini上进行更改后重新启动apache

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM