问题
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