I am trying to use xdebug for PHP 7.1.6 to troubleshoot a unit test in my CakePHP v3.3.6 project. I installed xdebug using the following settings:
[xdebug]
xdebug.remote_enable = on
xdebug.remote_host = 127.0.0.1
xdebug.remote_port = 9000
xdebug.remote_autostart = 1
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = off
xdebug.profiler_output_name = cachegrind.out.%t.%p
xdebug.profiler_output_dir = "c:/wamp/tmp"
xdebug.show_local_vars=0
xdebug.max_nesting_level=256
Now, PHP connects to my xdebug client (VisualStudio code), but as soon as I run phpunit ./vendor/phpunit/phpunit/phpunitor the Cake console ./bin/cake.php, an exception is thrown:
type: Aura \ Intl \ Exception
message: 'Package' cake 'with the language version' en_US 'is not registered.
, , , , xdebug, isn " . , xdebug, .
!
: , , bootstrap.php
// Disable all cache reads, and cache writes.
Cache::disable();
.