在 XDEBUG 中出现错误

2022-01-24 00:00:00 linux debian xdebug eclipse-pdt

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

I just installed xdebug on my eclipse PDT installation and now I am getting the following error when trying to debug my PHP code using XDEBUG on my local debian box:

网络启动已经在运行

2 个问题:

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

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

Any help/direction would be appreciated as I'm at the point where I'm starting to pull my hair out. Thanks!

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

Here is what I added to my php.ini file in the Dynamic Extensions section per instructions:

;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

推荐答案

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

"Web Launch Already Running"
It means that you have started the debug session already and it is not being terminated yet.
Open 'Debug' perspective and see 'Debug' tab, select 'PHP Web Application' and click 'Terminate'(red square) button.

相关文章