PHP XDebug 禁用对每个请求的中断
我正在编写一个使用 JS 和 PHP 的 Web 应用程序。每次刷新时,我的 php 脚本都会收到大约 5 个 ajax 调用。使用 XDebug 会变得非常烦人,因为它会在每个请求上中断(没有放置断点)。
我认为这是一个常见问题,但我似乎找不到任何相关信息。有谁知道如何禁用每个请求的中断?
编辑:我正在使用 Wamp 和 Netbeans 7.0
- Rob
I'm writing a webapplication that uses JS and PHP. Each time I refresh I get about 5 ajax calls to my php script. This is getting quite annoying using XDebug since it breaks on each of those request (without a breakpoint placed).
I thought this was a common problem but I can't seem to find anyting about it. Does anyone know how to disable breaking on each request?
EDIT: I'm using Wamp and Netbeans 7.0
- Rob
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
据我记得,xdebug 在调试时会在 url 中添加类似
XDEBUG_SESS_ID=xxxxxxxx
的内容。如果是这种情况,请从 url 中删除它。From what i remember, xdebug adds something like
XDEBUG_SESS_ID=xxxxxxxx
to the url when debugging. if this is the case, then remove that from the url.您最有可能有一些空的 src="" 标签或类似标签。您需要找出(通过检查 apache 日志)发出了哪些请求。 Xdebug 本身并不决定发出请求。
What is most likely that you have some empty src="" tags or alike. You need to find out what (by checking your apache logs) which requests are made. Xdebug itself does not decide to make requests.
停止运行的是 IDE。在 NetBeans 中,转到工具->选项-> PHP->调试并取消选中在第一行停止。
(在早期的 NetBeans 版本中,该选项位于工具->选项-> PHP-> 通用)
It's the IDE the one that's stopping. In NetBeans, go to Tool-> Options-> PHP-> Debugging and uncheck Stop at first line.
(In earlier NetBeans versions the option was under Tool-> Options-> PHP-> General)