【发布时间】:2012-09-04 12:42:40
【问题描述】:
我将 EasyPhp 更新到版本 12,
如果我在 Eclipse 中将断点设置为 /work/abc.php,则在调试期间 Eclipse 打开一个 c:\www\work\abc.php
然后如果我修改 /work/abc.php Eclipse 仍然显示旧文件!
Xdebug 2.2.1 更稳定了,但是这个本地文件拷贝是什么东西呢? 这是 php.ini
;Xdebug
zend_extension = "${path}\php\php5314x120809150232\php_xdebug-2.2.0-5.3-vc9.dll"
xdebug.default_enable=0
xdebug.remote_enable=1
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_autostart = false
xdebug.dump_globals=1
xdebug.dump=COOKIE,FILES,GET,POST,REQUEST,SERVER,SESSION
xdebug.dump.SERVER=REMOTE_ADDR,REQUEST_METHOD,REQUEST_URI
xdebug.show_local_vars=1
xdebug.show_mem_delta=1
xdebug.collect_includes=1
xdebug.collect_vars=1
xdebug.collect_params=4
xdebug.collect_return=1
xdebug.auto_trace=0
xdebug.trace_options=0
xdebug.trace_format=0
xdebug.trace_output_dir="${path}\xdebug\trace"
xdebug.trace_output_name="trace.%t"
xdebug.profiler_enable=0
xdebug.profiler_append=1
xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir="${path}\xdebug\profiler"
xdebug.profiler_output_name="cachegrind.out.%s.%t"
;/Xdebug
我正在使用 Eclipse for PHP Developers 版本:3.0.2(Eclipse 平台版本:3.7.1)
【问题讨论】:
-
您能详细说明一下吗? - 您是否在请求仍处于活动状态时修改文件(仅由调试器停止)? - 你是在 eclipse 中修改文件还是通过其他工具修改文件?
-
我只在没有请求正在进行时使用 eclipse 进行修改(因为在调试器中不等待我按 F8 继续)
-
似乎您的工作流程是正确的...奇怪,我从来没有在 apache 上远程运行 xdebug 时遇到过这种情况。听起来肯定是缓存问题