如何在 PHP 中调试多个会话?
我正在开发一个项目,其中应用程序在开发模式下通过网络创建对同一应用程序的 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试 Eclipse PDT + Zend Server。我认为它可以让您调试多个正在运行的进程。
Try Eclipse PDT + Zend Server. I think it let you Debug with multiple running processes.
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/