MatsumaruTsuyoshi / php-docker-xdebug-vscode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP/Xdebug/Docker example

Debug PHP with Xdebug inside Docker. Tested with VS Code.

Usage

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

VS Code configuration

Reference

php-xdebug-docker

【VsCode】Docker環境でPHP Debugを導入する手順

About


Languages

Language:Dockerfile 79.4%Language:PHP 20.6%