Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/235.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHPUnit&x2B的奇怪行为;Xdebug&x2B;PhpStorm_Php_Shell_Phpunit_Phpstorm_Xdebug - Fatal编程技术网

PHPUnit&x2B的奇怪行为;Xdebug&x2B;PhpStorm

PHPUnit&x2B的奇怪行为;Xdebug&x2B;PhpStorm,php,shell,phpunit,phpstorm,xdebug,Php,Shell,Phpunit,Phpstorm,Xdebug,我在Debian上的shell中使用PhpStorm+Xdebug+PHPUnit。 工作正常,但有一种奇怪的行为,大多很无聊 当我在shell中运行phpunit命令时,PhpStorm向我显示的第一个中断出现在它检查php版本的行中的/usr/local/bin/phpunit 但很明显,我没有在那个文件中设置任何断点 if (version_compare('5.6.0', PHP_VERSION, '>')) { fwrite( STDERR, 'This vers

我在Debian上的shell中使用PhpStorm+Xdebug+PHPUnit。 工作正常,但有一种奇怪的行为,大多很无聊

当我在shell中运行
phpunit
命令时,PhpStorm向我显示的第一个中断出现在它检查php版本的行中的
/usr/local/bin/phpunit

但很明显,我没有在那个文件中设置任何断点

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);
}
此外,该文件非常大,因此在继续之前,它会被阻止几秒钟


有什么建议吗?

请确保取消选中PHP脚本中的
Run | Break at first line

但很可能在这方面没有帮助。如果是:

  • 设置/首选项|语言与框架| PHP |调试
  • 当脚本在项目之外时,取消选中第一行的强制中断选项——根据您的描述,此选项负责此行为

  • 取消选中
    Run |在PHP脚本的第一行中断
    。但最有可能的是,它不会有帮助——然后你必须检查
    Setting/Preferences | Languages&Frameworks | PHP | Debug
    中的设置——看看
    Force break在第一行…
    选项——最有可能的第二行正在执行此操作。@LazyOne谢谢。我取消选中了“当脚本在项目外部时强制在第一行中断”,现在可以正常工作。