我已將 PhpStorm 配置為連接到遠程 Web 服務器。我正在運行 phpunit 進行單元測試。我正在運行 xdebug 并創建了一個用于調試的 ssh 隧道。我知道 xdebug 正在運行,因為我只需單擊運行按鈕(在打開偵聽 PHP 調試連接后)即可單擊并運行 phpunit 測試(設置斷點)。但是,如果我改為在 PhpStorm 中選擇調試選項,則會出現連接錯誤。在 PhpStorm 日志文件中啟用調試消息,我看到正在發送的命令是:DEBUG - ellij.ssh.SshConnectionService - Executing SSH command: cd /[path to project files]; exec env "IDE_PHPUNIT_CUSTOM_LOADER"="/[path to autoloader]/autoload.php" "JETBRAINS_REMOTE_RUN"="1" "XDEBUG_CONFIG"="idekey=17650" /usr/bin/php -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9002 -dxdebug.remote_host=[ip address] /[path to phpunit]/phpunit/phpunit --configuration /[path to phpunit xml file]/phpunit.xml --filter '/(::myTestClassMethod)( .*)?$/' 'another method being tested' /[path to unit test file]/myUnitTest.php --teamcity within SshjSshConnection([blah]@[foo])@bar 我的 php.ini 設置是預期的idekey=PHPSTORM,但我在命令行中看到一個數字鍵,每次嘗試都會不斷變化。我假設這兩個值idekey需要匹配。如果這是正確的,我該怎么做?謝謝
1 回答

桃花長相依
TA貢獻1860條經驗 獲得超8個贊
他們不需要匹配。事實上,PhpStorm 只是在這里覆蓋它,以便它可以匹配它所期望的。
我不明白為什么會這樣,因為IDE Keys(當前)僅與DBGp proxies結合使用。
由于您沒有描述什么是“連接錯誤”,因此實際上還不可能為問題的這一部分提供答案。
- 1 回答
- 0 關注
- 162 瀏覽
添加回答
舉報
0/150
提交
取消