Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/symfony/6.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
Symfony Xdebug可以调试codeception,但不能调试codeception测试_Symfony_Xdebug_Codeception - Fatal编程技术网

Symfony Xdebug可以调试codeception,但不能调试codeception测试

Symfony Xdebug可以调试codeception,但不能调试codeception测试,symfony,xdebug,codeception,Symfony,Xdebug,Codeception,我正在Symfony2项目中运行Codeception测试,并在PHPstorm中开发 调试codeception过去是可以工作的,但我最近启动了一个新项目,它不再工作了。一切都按它应该的方式配置。当我将phpstorm设置为开始侦听连接时,我在bin/codecept中设置了一个断点。调试器在断点处停止(应该如此) 但是,当我在测试中设置断点(该测试已经运行)时,我得到了消息 16:10:41 Debug session was finished without being paused

我正在Symfony2项目中运行Codeception测试,并在PHPstorm中开发

调试codeception过去是可以工作的,但我最近启动了一个新项目,它不再工作了。一切都按它应该的方式配置。当我将phpstorm设置为开始侦听连接时,我在bin/codecept中设置了一个断点。调试器在断点处停止(应该如此)

但是,当我在测试中设置断点(该测试已经运行)时,我得到了消息

16:10:41 Debug session was finished without being paused
         It may be caused by path mappings misconfiguration or not synchronized local and remote projects.
         To figure out the problem check path mappings configuration for 'null' server at PHP|Servers or enable Break at first line in PHP scripts option (from Run menu).
         Do not show again (show balloon)

我确实认为路径映射出了问题,因为我的服务器运行在符号链接上,但为什么调试应用程序/控制台和codeception本身可以工作,而测试却不能工作?

可能是因为:

测试不是直接执行的,它是由反射触发的


我只能建议一种解决方法——在要调试的助手方法中放置一个断点。这确实有效,allready对我帮助很大!奇怪的是,测试本身没有被击中。天哪!我发现了问题。我将tests文件夹重命名为tests,我在代码
/Library/WebServer/Documents//src/AppBundle/tests/unit/Form/MenteeTypeTest.php中看到了这一点,因此文件夹名称出于某种原因不同步。多谢各位