我喜欢Netbeans帮助我调试我的Magento应用程序的方式(在Win 7 64位的XAMPP中),但我注意到连接似乎在一段时间后超时.断点不再受到攻击,我必须重新启动调试会话,这很烦人.有关如何扩展或禁用调试超时的任何建议?
我在IDE或Xdebug PHP.ini配置中看不到任何选项. Xdebug文档说明:
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.
但不建议如何更改到期时间.
找到PHP.ini并将以下行添加到xdebug部分.
xdebug.remote_cookie_expire_time = 3600
该数字是cookie保持活动状态的时间(以秒为单位),默认为3600(1小时).我把它设置为36000(10小时),这很好,并鼓励我偶尔重启过程以释放内存.如果你愿意,你可以将它设置为0(无限制),虽然我发现它会导致奇怪的冻结.
请记住重新启动Apache以进行更改.