PHP XDebug 禁用对每个请求的中断

发布于 2024-11-30 06:04:35 字数 224 浏览 5 评论 0原文

我正在编写一个使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

小忆控 2024-12-07 06:04:36

据我记得,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.

飘逸的'云 2024-12-07 06:04:36

您最有可能有一些空的 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.

强辩 2024-12-07 06:04:35

停止运行的是 IDE。在 NetBeans 中,转到工具->选项-> PHP->调试并取消选中在第一行停止

NetBeans 8.0 的屏幕截图

(在早期的 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.

Screenshot from NetBeans 8.0

(In earlier NetBeans versions the option was under Tool-> Options-> PHP-> General)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文