Phpdebug is used in vscode to remotely debug php code on the server. Xdebug is successfully installed but the breakpoint does not stop.

there is no php environment locally, and the code is deployed on a remote server and mapped to the local through samba. If you want to debug remotely via xdebug, both the server and the local vscode have xdebug, installed but are not stopped at the breakpoint.
there may be a problem with the configuration of the "php.validate.executablePath" field. Would you like to know how to fill in the php path in the server in this field?


have you solved the problem


ask for help! So am I.


-sharp vscode launch.json 
{
    //  IntelliSense  
    // 
    // : https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Listen for XDebug",
            "type": "php",
            "request": "launch",
            "port": 8900,
            "pathMappings": {
                "/home/yanglu09/oss": "${workspaceRoot}/"
            }
        }
    ]
}
pathMappingkeyvalue${workspaceRoot}

specific problems can be analyzed by configuring xdebug.log log files

Menu