I am having an error running the tests for my application in PhpStorm using Codeception. My code is running through Vagrant.
In the top line of my index.php for the Codeception test is:
ini_set('xdebug.max_nesting_level', 200);
I installed xdebug through homebrew and that's in my php version output:
PHP 7.1.12 (cli) (built: Dec 2 2017 12:15:25) ( NTS )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
with Xdebug v2.5.5, Copyright (c) 2002-2017, by Derick Rethans
When I run the tests though I get an error in PhpStorm event log:
Cannot accept external Xdebug connection: Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])'
In my PhpStorm settings I have it set up to accept external connections:
and in php info I have xdebug setting available:
$ php -i | grep xdebug
Additional .ini files parsed => /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini
xdebug
xdebug support => enabled
xdebug.auto_trace => Off => Off
xdebug.cli_color => 0 => 0
xdebug.collect_assignments => Off => Off
xdebug.collect_includes => On => On
...
xdebug.remote_connect_back => On => On
In the /usr/local/etc/php/7.1/conf.d/ext-xdebug.ini I set xdebug.remote_connect_back=1
based on this thread.
What can I do to remove the Cannot accept external Xdebug connection
error and run tests?