fender0107401 发表于 2013-04-03 23:50

我遇到一个奇怪的问题,关于xdebug。

本帖最后由 fender0107401 于 2013-04-03 23:56 编辑

我在自己的debian 6.0系统上面安装了xdebug,使用phpinfo()可以看见已经安装成功了,但是我通过浏览器调用有问题的php脚本的时候根本就不显示错误信息。

我google了一下,似乎没什么人出现这种情况,但是有人说需要把php的html_errors给打开,我打开了,在phpinfo()里面能看见html_errors已经打开了。

但是我还是没法看见php脚本的错误信息,我感觉可能是我装的php5不对,所以又装了php5-dev,但是还是不行。

不知道还需要那些配置,感觉有点崩溃。

xdebug的安装命令用的是apt-get install xdebug

fender0107401 发表于 2013-04-04 00:05

本帖最后由 fender0107401 于 2013-04-04 00:07 编辑

从phpinfo里面能看到这些信息:Directive        Local Value        Master Value
xdebug.auto_trace        Off        Off
xdebug.collect_assignments        Off        Off
xdebug.collect_includes        On        On
xdebug.collect_params        0        0
xdebug.collect_return        Off        Off
xdebug.collect_vars        Off        Off
xdebug.default_enable        On        On
xdebug.dump.COOKIE        no value        no value
xdebug.dump.ENV        no value        no value
xdebug.dump.FILES        no value        no value
xdebug.dump.GET        no value        no value
xdebug.dump.POST        no value        no value
xdebug.dump.REQUEST        no value        no value
xdebug.dump.SERVER        no value        no value
xdebug.dump.SESSION        no value        no value
xdebug.dump_globals        On        On
xdebug.dump_once        On        On
xdebug.dump_undefined        Off        Off
xdebug.extended_info        On        On
xdebug.file_link_format        no value        no value
xdebug.idekey        no value        no value
xdebug.manual_url        http://www.php.net        http://www.php.net
xdebug.max_nesting_level        100        100
xdebug.overload_var_dump        On        On
xdebug.profiler_aggregate        Off        Off
xdebug.profiler_append        Off        Off
xdebug.profiler_enable        On        On
xdebug.profiler_enable_trigger        Off        Off
xdebug.profiler_output_dir        /tmp        /tmp
xdebug.profiler_output_name        cachegrind.out.%p        cachegrind.out.%p
xdebug.remote_autostart        Off        Off
xdebug.remote_connect_back        Off        Off
xdebug.remote_cookie_expire_time        3600        3600
xdebug.remote_enable        On        On
xdebug.remote_handler        dbgp        dbgp
xdebug.remote_host        localhost        localhost
xdebug.remote_log        no value        no value
xdebug.remote_mode        req        req
xdebug.remote_port        9000        9000
xdebug.scream        Off        Off
xdebug.show_exception_trace        Off        Off
xdebug.show_local_vars        Off        Off
xdebug.show_mem_delta        Off        Off
xdebug.trace_format        0        0
xdebug.trace_options        0        0
xdebug.trace_output_dir        /tmp        /tmp
xdebug.trace_output_name        trace.%c        trace.%c
xdebug.var_display_max_children        128        128
xdebug.var_display_max_data        512        512
xdebug.var_display_max_depth        3        3

liuxingyuyuni 发表于 2013-04-09 09:32

xdebug 调试的那些文件是否生成了?生成了就代表没有问题。

30.xdebug.profiler_output_dir      这个东东

fender0107401 发表于 2013-04-09 09:59

回复 8# liuxingyuyuni

已经搞定了,貌似没有生成什么文件,我只要能看到php的错误就行了,以后可能会去配置一下xdebug,现在先用着就行了。

   

fender0107401 发表于 2013-04-04 00:08

真奇怪,怎么就没法显示出错信息呢?

墨迹哥 发表于 2013-04-04 00:42

你用source 文件更新了吗?

fender0107401 发表于 2013-04-04 09:29

I got that.

After the installation, I saw "xdebug" in phpinfo's output, so it is installed.

The point is I have to modify php.ini to enable *_errors, such as display_errors, html_errors, startup_errors and log_errors.

Without these modifications, xdebug will show nothing at all!

maochanglu 发表于 2013-04-04 11:19

版主的英文真好 O(∩_∩)O

墨迹哥 发表于 2013-04-05 17:55

回复 5# fender0107401


    我擦。。你这是回复我吗。。。。:shock:
页: [1]
查看完整版本: 我遇到一个奇怪的问题,关于xdebug。