Phpunit 通过PhpStorm中的SSH实现Xdebug-dons';不要在断点处停止

Phpunit 通过PhpStorm中的SSH实现Xdebug-dons';不要在断点处停止,phpunit,phpstorm,xdebug,Phpunit,Phpstorm,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, b

我在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/home/path/vendor/phpunit/phpunit-bootstrap/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


有什么建议吗?

没有停止吗?好。。它甚至无法连接到IDE。。。IP地址正确吗?以防万一:@LazyOne我在远程服务器上创建了一个简单的php文件。我设置了一个断点。我在PhpStorm中为此脚本创建了新的调试配置。我单击debug和PhpStorm发送到serwer:
ssh://user@server.pl:22/usr/bin/php-dxdebug.remote_enable=1-dxdebug.remote_mode=req-dxdebug.remote_port=9001-dxdebug.remote_host=11.11.11/home/path/public/tt.php
,其中11.11.11.11是我的本地计算机ip,该ip是正确的。在服务器上的php.ini中,我有:xdebug.remote\u port=9001 xdebug.remote\u log=“/tmp/xdebug.log”xdebug.remote\u connect\u back=0 xdebug.remote\u timeout=200我与IP混淆了。我可能错了。。。但是,在通过SSH进行操作时,它不应该使用您的本地PC IP。现在,它可能正在尝试通过internet连接到您的电脑。。您的防火墙/路由器可能正在阻止它。我建议使用SSH隧道(在我给你的链接中可以找到包含所有详细信息的链接),以便Xdebug连接到127.0.0.1,然后SSH将其转发到本地PC。除此之外,您的Xdebug配置部分似乎还可以。对不起,我自己还没有通过SSH调试PHPUnit;只有SSH隧道可以正常工作的普通脚本/网页。