PhpStorm - simultaneous project debugging?

I'm wondering if there is a way to run two simultaneous debug sessions on the same machine...  Here is the scenario:

I'm trying to run a phpunit test on my restful api.  The problem is whenever I turn on the debugger, the tests hang up as soon as the api is called.  I'm able to break in the test before the api call, but nothing after.  It's like there is a debug session activated for the unit tests, and then a second one activated on the api call (to the same local project).  The unit test debugger cannot continue until the api call returns, but the api call will never return because it's debugger session is waiting for the unit test session to finish.  I've even tried running this with two copies of the code base, one to run the unit tests, and the original to handle the api call.

Is there any way to make this work?

Please sign in to leave a comment.