I'm using PhpStorm + Xdebug + PHPUnit in shell on Debian. Works fine but there is a strange behaviour, mostly boring.
When I run phpunit command in shell, the first break that PhpStorm show me is in /usr/local/bin/phpunit in the line where it check the php version...
But Obviously I don't have put any breakpoint in that file.
if (version_compare('5.6.0', PHP_VERSION, '>')) {
fwrite(
STDERR,
'This version of PHPUnit requires PHP 5.6; using the latest version of PHP is highly recommended.' . PHP_EOL
);
die(1);
}
In addition, the file is very large so it remains blocked several seconds before you can go ahead.
Any suggestion?
Make sure that Run | Break at first line in PHP scripts is un-checked.
But most likely it will not help here. If so:
Setting/Preferences | Languages & Frameworks | PHP | DebugForce break at the first line when a script is outside the project option -- based on your description this one is responsible for this behaviour.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With