pecl install xdebug-3.1.6
docker-php-ext-enable xdebug
[xdebug]
xdebug.mode=develop,debug
xdebug.client_port = 9095 ## any port number which is exposed
xdebug.discover_client_host = 1
xdebug.idekey = VSCODE
xdebug.start_with_request = yes
xdebug.log =/tmp/xdebug.log
** path mapping is execution path vs codebase path
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9005,
"log": true,
"pathMappings": {
"/var/www/html/":"${workspaceRoot}/src"
}
},