【问题标题】:eclipse + xdebug 2.2.1 debug opens outdated fileeclipse + xdebug 2.2.1 调试打开过时文件
【发布时间】: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 时遇到过这种情况。听起来肯定是缓存问题

标签: xdebug easyphp


【解决方案1】:

当您远程工作时,您需要将远程文件映射到本地目录。也许 Eclipse 尝试在本地打开文件,当您更改文件时它不知道它必须远程更新文件?我不太了解 Eclipse,但我将 Komodo 与 php 和 xdebug 一起使用。

【讨论】:

    猜你喜欢
    • 2017-10-25
    • 2012-04-19
    • 1970-01-01
    • 2012-01-23
    • 1970-01-01
    • 1970-01-01
    • 2013-06-01
    • 1970-01-01
    • 2011-07-29
    相关资源
    最近更新 更多