12

我正在使用 Eclipse IDE + 远程 Xdebug。EclipseIDE 正在监听 9000 端口以获取某种 Xdebug 信息。

cron 在服务器上运行一些 php 脚本。因此,每个 cron 执行 xdebug 都会向我的工作站发送信息,而 EclipseIDE 正试图在我的项目中找到这个文件。但是找不到文件,因为 cron running scrits 与我正在使用的项目无关。因此,每个 cron 运行的 Eclipse IDE 都会提醒这条消息http://img2.pict.com/22/fc/86/3299517/0/screenshot2b142.png

我试图在 cron 执行的 php 脚本中添加一些字符串......

if (function_exists('xdebug_disable')) {
  xdebug_disable();
}

......但它没有帮助。

有任何想法吗?

谢谢

4

1 回答 1

14

正如我所调查的那样,我应该设置xdebug.remote_autostart=0 请参阅文档:http: //xdebug.org/docs/remote

重要的!您应该通过 php.ini 更改此值。使用函数 ini_set('xdebug.remote_autostart', 0) 将不起作用,因为会话已经开始,并且您仍将 xdebug 信息发送到远程主机。

于 2010-04-03T09:03:00.407 回答