Debug PHP with Xdebug inside Docker. Tested with VS Code.
change pathMappings path
.vscode/launch.json
{
"configurations": [
{
///..
"pathMappings": {
"/var/www/html/": "/Users/mt/php-xdebug-docker" // "/Users/mt/php-xdebug-docker" Change to your own directory
},
...///
}
]
}
docker-compose up -d