Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strange behaviour of PHPUnit + Xdebug + PhpStorm

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?

like image 544
matiux Avatar asked Jan 20 '26 19:01

matiux


1 Answers

Make sure that Run | Break at first line in PHP scripts is un-checked.

But most likely it will not help here. If so:

  1. Setting/Preferences | Languages & Frameworks | PHP | Debug
  2. Uncheck the Force break at the first line when a script is outside the project option -- based on your description this one is responsible for this behaviour.
like image 56
LazyOne Avatar answered Jan 23 '26 09:01

LazyOne



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!