How to debug multiple sessions in PHP?

自作多情 提交于 2019-12-13 13:15:07

问题


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.


回答1:


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




回答2:


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/



来源:https://stackoverflow.com/questions/5283413/how-to-debug-multiple-sessions-in-php

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!