PHPUnit 'Debug connection was not established'
from issue tracker:
Tom Maguire
Hi there,
I'm currently trying to set up PHPStorm 2.0 v103.99 to debug unit tests using PHPUnit. I can run all the tests fine, however when I run them in debug mode, I get a message informing me that 'Debug connection was not established', and it does not hit any of the break points.
I am using xdebug, which works fine when I am debugging in a browser, but cannot seem to connect when running the tests through the PHPStorm console.
Any help would be much appreciated, please let me know if I need to supply more information.
Thanks
Please sign in to leave a comment.
Hello Tom,
This message means that you have a problem with debugger settings. Please check your settings with - http://xdebug.org/find-binary.php. Thank you for feedback!
Hi Nikolay, thanks for your reply.
Here is the output from the site (all seems fine?):
Summary
And here is the info from php_info():
If you have any other suggestions they'd be much appricaited
Thanks
Tom
Tom,
It is configuration of php installed on apache. The path to php.ini for CLI is usually something like '/etc/php5/cli/php.ini'. Please ensure that you check the proper configuration.
Also check 'Debugger' field value in PHP settings. It is should be 'Xdebug' selected.
Aha! That did the trick. Thank you very much