How to debug multiple sessions in PHP?
Asked Answered
O

2

4

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.

Orvie answered 12/3, 2011 at 15:28 Comment(1)
Hmmm, tough one. You could try using Zend Server CE as a debuggerKure
T
1

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

Timmerman answered 12/3, 2011 at 15:51 Comment(0)
G
1

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/

Gerson answered 15/3, 2011 at 21:11 Comment(1)
They allow simultaneous connections now: blog.jetbrains.com/phpstorm/2013/04/…Eckart

© 2022 - 2024 — McMap. All rights reserved.