如何在PHP中调试多个会话? [英] How to debug multiple sessions in PHP?

查看:215
本文介绍了如何在PHP中调试多个会话?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

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

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.

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

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.

推荐答案

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/

这篇关于如何在PHP中调试多个会话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆