使用 Xdebug 的 PhpStorm 新項(xiàng)目開始出現(xiàn)奇怪的問題在 Docker 中使用與其他項(xiàng)目相同的配置運(yùn)行 PHP,Xdebug 可以毫無問題地工作,經(jīng)過無數(shù)次仔細(xì)檢查后,它們之間幾乎沒有區(qū)別,PhpStorm 配置完全相同。問題是一切看起來都正常,連接出現(xiàn)但沒有任何停止,我將此主題命名為與我在此處找到的完全相同的主題,劇透(它對我沒有幫助:( )還按照該主題中的建議啟用了日志記錄,這是一個(gè)會話的日志[13] Log opened at 2020-08-12 15:50:53[13] I: Connecting to configured address/port: 172.17.0.1:9000.[13] I: Connected to client. :-)[13] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///var/www/html/pub/index.php" language="PHP" xdebug:language_version="7.3.20" protocol_version="1.0" appid="13" idekey="PHPSTORM"><engine version="2.9.6"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2020 by Derick Rethans]]></copyright></init>[13] <- feature_set -i 1 -n show_hidden -v 1[13] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="1" feature="show_hidden" success="1"></response>[13] <- feature_set -i 2 -n max_depth -v 1[13] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="2" feature="max_depth" success="1"></response>[13] <- feature_set -i 3 -n max_children -v 100[13] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="3" feature="max_children" success="1"></response>[13] <- feature_set -i 4 -n extended_properties -v 1[13] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="4" feature="extended_properties" success="1"></response>[13] <- feature_set -i 5 -n notify_ok -v 1[13] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="feature_set" transaction_id="5" feature="notify_ok" success="1"></response>正如這里所看到的,沒有任何錯(cuò)誤的跡象,我們將不勝感激
1 回答

九州編程
TA貢獻(xiàn)1785條經(jīng)驗(yàn) 獲得超4個(gè)贊
它表明 IDE 正在設(shè)置斷點(diǎn):
breakpoint_set -i 9 -t line -f file:///var/ww/html/pub/index.php -n 13
但正在調(diào)試的文件是:
fileuri="file:///var/www/html/pub/index.php"
我認(rèn)為您只是拼寫錯(cuò)誤了 IDE 中的路徑映射,您在/var/ww
其中使用了/var/www
.
- 1 回答
- 0 關(guān)注
- 118 瀏覽
添加回答
舉報(bào)
0/150
提交
取消