1:php配置 這裏注意 xdebug.client_host 配置的是宿主機的ip 2:phpstorm配置 配置CLI Interpreters 配置 Path mappings 配置Servers 端口確定 配置PHP Remote Debug 3: 測試效果 開啓調試 完成