Mac computer, how does vscode debug the code in the docker php container remotely through the port?

when there is no local php environment, I want to access the port number of the docker map through vscode and debug the code remotely. X-debug in vscode has been configured in map,docker, xdebug has been configured in remote_host, but still cannot break point. Where 12900 is the port number of the docker map.
dockerxdebug

vscode xdebug

Mar.03,2021

reference articles:
https://blog.csdn.net/qq62420.

Menu