如何在 PHP 中调试多个会话?

发布于 2024-10-21 07:20:04 字数 267 浏览 12 评论 0原文

我正在开发一个项目,其中应用程序在开发模式下通过网络创建对同一应用程序的 Web 服务请求,以获得虚假数据和更好的开发环境。

有时,当我调试时,我发现很难做到这一点,因为当您在同一个 PHP 安装上同时有两个调试会话时,XDebug 似乎不起作用。

有没有办法使用一些调试工具来调试 PHP 中的多个会话?我一直在使用 Netbeans 和 XDebug,一旦新会话启动,调试就会停止。我想 IDE 还必须支持多个会话。我最近切换到 phpStorm 所以我想当我不懒的时候我会尝试一下。

I am working on a project where the application creates web service requests to the same application over the network in development mode to get bogus data and better development environment.

Sometimes when I am debugging I found it hard to do because it seems that XDebug does not work when you have two debugging sessions at the same time on the same PHP installation.

Is there a way to debug multiple sessions in PHP with some debug tool? I have been using Netbeans and XDebug and the debugging just dies as soon as a new session is started. I guess the IDE also has to support multiple sessions. I recently switched to phpStorm so I guess I will give it a go when I'm not lazy.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

寄居者 2024-10-28 07:20:04

尝试 Eclipse PDT + Zend Server。我认为它可以让您调试多个正在运行的进程。

Try Eclipse PDT + Zend Server. I think it let you Debug with multiple running processes.

孤檠 2024-10-28 07:20:04

PhpStorm 使用 FIFO 队列来管理传入的调试器连接,并允许同时处理多个调试连接。
详细信息 - http://blogs. jetbrains.com/webide/2011/03/configure-php-debugging-in-phpstorm-2-0/

PhpStorm uses FIFO queue to manage incoming debugger connections and allows to handle several debug connections simultaneously.
Details - http://blogs.jetbrains.com/webide/2011/03/configure-php-debugging-in-phpstorm-2-0/

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