Parallel remote debug sessions for the same project

I am dealing with a type of application, which may call itself via HTTP several times per one user-request. While remote debugging I am able to catch the initial browser request to the application into the IDE debugger session. Next, the application is going to send another HTTP request to itself from inside the active debugging session. I can easily forward all the debugging related cookies within the new request, but the problem is that the PhpStorm only allows one remote debug session per project at the same time, and another request whether just gets stuck waiting for the initial debugging session to end, or it just flies unnoticed by the IDE.

I was able though to have parallel debug sessions for different projects opened in PhpStorm in different windows.

Do I miss some hidden existing functionality to start parallel remote debugging sessions, or should I file a feature request instead?

2 comments
Comment actions Permalink

Hello Fn Ln,

Do I miss some hidden existing functionality to start parallel remote debugging sessions, or should I file a feature request instead?

It is expected behaviour. Please submit an issue - http://youtrack.jetbrains.net/issues/WI#newissue=yes

Some notes:
We experimented a lot in this area and decided to manage any debugger connections in FIFO order and handle only one connection per project at time. The reason was that applications which extensively use AJAX can generate a lot of incoming connections at the same time can make debugging impossible(just imagine youself that you can get a new debug tab every second). Providing some limits for incoming debug connections like "handle not more than 3 simultaneous connections" is also useless.

Though I see your point and understand the problem. I have an idea how we can solve it.

Next, the application is going to send another HTTP request to itself from inside the active debugging session. I can easily forward all the debugging related cookies within the new request

Is it possible pass altered 'IDE_KEY' cookie value when requesting a new page? In this case we can change our "only one remote debug session per project at the same time" constraint to "only one remote debug session with the same IDE_KEY per project at the same time" and it will work for you.

Any ideas?

Thank you for feedback!
0
Comment actions Permalink

Thank you for the response, Nikolay.

I created a feature request in youtrack - http://youtrack.jetbrains.net/issue/WI-7355 .

Providing some limits for incoming debug connections like "handle not more than 3 simultaneous connections" is also useless.

I personally do not find it useless, you wouldn't want to debug zillions requests in parallel anyway, only some adequate number of sessions is practically usable. And this solution won't abuse the IDE_KEY parameter usage, which has it strict application now - uniqly identify the IDE wich is required to be dealing with your debugging request.

0

Please sign in to leave a comment.