【问题标题】:Getting error in XDEBUG在 XDEBUG 中出现错误
【发布时间】:2012-05-03 20:32:23
【问题描述】:

我刚刚在我的 Eclipse PDT 安装中安装了 xdebug,现在尝试在本地 debian 机器上使用 XDEBUG 调试我的 PHP 代码时出现以下错误:

网络启动已经在运行

2 个问题:

  1. 我怎样才能在 Eclipse 中杀死它而不一起退出 Eclipse?
  2. 是否需要设置我的说明中没有的其他配置设置?

任何帮助/指导将不胜感激,因为我正处于开始拔头发的地步。谢谢!

这是我按照说明添加到动态扩展部分的 php.ini 文件中的内容:

;load module
zend_extension="/usr/lib/php5/20090626+lfs/xdebug.so"

;some options
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req

;The following IP should be of the host running Eclipse!
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.idekey=

;Only enable the following if you want profiler output (lots of data!)
;xdebug.profiler_enable=1
;xdebug.profiler_output_dir=/var/log/XDebug/
;xdebug.profiler_enable_trigger=1

【问题讨论】:

  • 您的 Xdebug 配置看起来不错。此错误消息来自 PDT(我不知道该怎么办)。
  • 谢谢,德里克。我永远无法让 Eclipse 的 PDT 版本与 XDEBUG 一起工作。我终于弄清楚了如何通过在调试模式下终止我的会话来终止我的 XDEBUG 会话。我猜 XDEBUG 只是不知道如何自行终止。我不得不去 Netbeans,尽管它非常庞大,但它与我的 XDEBUG 安装配合得很好。不需要添加配置。太好了!再次感谢您 5 月 3 日的回复。

标签: linux debian xdebug eclipse-pdt


【解决方案1】:

“Web 启动已在运行”
这意味着您已经启动了调试会话并且它还没有被终止。
打开“调试”透视图并查看“调试”选项卡,选择“PHP Web 应用程序”并单击“终止”(红色方块)按钮。

【讨论】:

    猜你喜欢
    • 2021-01-27
    • 1970-01-01
    • 2020-07-23
    • 2023-02-05
    • 1970-01-01
    • 1970-01-01
    • 2011-07-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多