为什么我的Netbeans Xdebug会话在不活动的时间段后超时 [英] Why does my Netbeans Xdebug session timeout after period of inactivity

查看:162
本文介绍了为什么我的Netbeans Xdebug会话在不活动的时间段后超时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢Netbeans帮助我调试我的Magento应用程序(在Win 7 64位的XAMPP中),但我注意到连接似乎在一段时间后超时。断点不再受到打击,我必须重新启动调试会话,这是令人讨厌的。有关如何扩展或禁用调试超时的建议?



我在IDE或Xdebug php.ini配置中看不到任何选项。 Xdebug文档指出:


当URL变量
XDEBUG_SESSION_START =名称被附加到
到一个URL时,Xdebug发出一个cookie,
名称为XDEBUG_SESSION,值为
为XDEBUG_SESSION_START
URL参数的值。
cookie的到期时间是1小时。咖啡是1小时。


但不建议如何更改到期时间。

解决方案

查找php.ini并将以下行添加到xdebug部分。

  xdebug.remote_cookie_expire_time = 3600 
$ / pre>

数字是cookie保持活动状态的时间(秒),默认为3600(1小时)。我把它设置为36000(10小时),工作正常,并鼓励我偶尔重新启动过程以释放内存。你可以将它设置为0(无限制),如果你想,虽然我发现导致这里和那里的奇怪的冻结。



记住重新启动Apache的更改踢。


I love the way the Netbeans helps me to debug my Magento applications (in XAMPP on Win 7 64-bit), but I've noticed that the connection seems to timeout after a period. The breakpoints no longer get hit and I have to restart the debugging session which is annoying. Any suggestions for how to extend or disable the debug timeout?

I can't see any options in the IDE or Xdebug php.ini config. The Xdebug documentation states:

When the URL variable XDEBUG_SESSION_START=name is appended to an URL, Xdebug emits a cookie with the name "XDEBUG_SESSION" and as value the value of the XDEBUG_SESSION_START URL parameter. The expiry of the cookie is one hour.cookie is one hour.

but doesn't suggest how to change the expiry time.

解决方案

Find php.ini and add the following line to the xdebug section.

xdebug.remote_cookie_expire_time = 3600

The number is the time in seconds for the cookie to remain active, which defaults to 3600 (1 hour). I set it to 36000 (10 hours), which works fine and encourages me to restart the process occasionally to free memory. You can set it to 0 (unlimited) if you want, although I found that caused odd freezes here and there.

Remember to restart Apache for the change to kick in.

这篇关于为什么我的Netbeans Xdebug会话在不活动的时间段后超时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆