Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHPUnit Freezes when run with xdebug active and listening

Im struggling since yesterday with a totally weird problem which occurs out of the nowhere. I'm working with PHPStorm in a Symfony Project. PHPUnit Tests are running as usual. If i activate the listening mode in the IDE for debugger connections and run the tests phpunit freezes and the IDE stops automatically after 30seconds. I think it has nothing to do with the ide. If i use MacGDBp i'm experiencing the same. I've checked all Firewall related stuff on my OSX 10.11 and installed php in a new Brew environment. PHP is Version 5.6 from the local OSX and from Brew.

I'm fairly blind without an debugger :-o

like image 267
Thomas Spycher Avatar asked Oct 20 '15 06:10

Thomas Spycher


People also ask

How does PHP xDebug work?

When Xdebug is running, it will call back to your IDE (like PhpStorm or VS Code) from the server where it's running. Your IDE will sit and listen for that connection on a specific port (typically port 9000 or 9003).

What is Xdebug_session_start Phpstorm?

Google Dork Description: inurl:?XDEBUG_SESSION_START=phpstorm. Google Search: inurl:?XDEBUG_SESSION_START=phpstorm. #Google Dork : inurl:?XDEBUG_SESSION_START #Summary: Xdebug is a php extension that allows to debug php pages, remotely by using DGBp protocol. -


1 Answers

Make sure you don't already have another debug session running in the background.

like image 190
dez Avatar answered Sep 22 '22 14:09

dez