laradock部屬 xdebug 修正 Could not connect to debugging client. Tried: host.docker.internal:9003問題


問題


使用laradock部屬啟動xdebug發現不斷跳出錯誤:

Xdebug: [Step Debug] Could not connect to debugging client. Tried: host.docker.internal:9003 (through xdebug.client_host/xdebug.client_port) :-(


    

始終不知道問題出在哪


解法


修改檔案 /etc/php/8.1/cli/conf.d/xdebug.ini (因設定有可能路徑不同)

xdebug.mode=off
修改為    

xdebug.mode=debug
    

留言

這個網誌中的熱門文章

bcb C++ Builder無法讀取JPG

tesseract is not installed or it's not in your path

tensorflow gpu版本 安裝教學 window 10 python 3.6