【发布时间】:2016-11-18 11:22:42
【问题描述】:
我正在尝试使用 XDebug 调试我的 Drupal 8 测试,但如果我在打开 XDebug 的情况下运行它们,我将无法进入测试。我执行以下命令:
供应商/bin/phpunit -c 核心 模块/permissions_by_term/tests/src/Kernel/SelectTermTest.php
PHPUnit 在这里报告我:
“找不到源位置。服务器名称'localhost'不存在。”
我在 PHP.ini 文件中的设置如下:
xdebug.remote_enable=true xdebug.profiler_enable=0 xdebug.idekey=PHPSTORM xdebug.max_nesting_level=256 xdebug.remote_autostart=true
有人可以在这里分享一些经验吗?
【问题讨论】:
标签: php drupal phpunit xdebug drupal-8