首页 > 解决方案 > 在 PhpStorm 中通过 SSH 进行 Xdebug - 不会在断点处停止

问题描述

我在 PhpStorm 中有通过 SSH 的项目。

我正在尝试使用调试器运行 PHPUnit 脚本,我看到了这条消息:

未建立与“Xdebug 2.6.0”的连接

在 xdebug.log 我看到:

Log opened at 2018-07-11 08:52:42
I: Connecting to configured address/port: 46.170.254.34:9001.
W: Creating socket for '46.170.254.34:9001', poll success, but error:  Operation now in progress (29).
E: Could not connect to client. :-(
Log closed at 2018-07-11 08:52:42

在控制台中我看到:

ssh://xxxx@xxxx.pl:22/usr/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9001 -dxdebug.remote_host=11.11.11.11 /home/path/vendor/ phpunit/phpunit/phpunit --bootstrap /home/path/vendor/autoload.php --configuration /home/path/phpunit.xml --filter "/(::testGettingMe)( .*)?$/" App\Tests \Functional\Context\Api\MeControllerTest /home/path/tests/Functional/Context/Api/MeControllerTest.php --teamcity

有什么建议吗?

标签: phpunitphpstormxdebug

解决方案


推荐阅读