Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

vhoen/docker-xdebug-sublime-text

Repository files navigation

Using Xdebug with Docker and Sublime Text

Set up Docker container

Set up PHP

zend_extension=/usr/lib/php5/20100525/xdebug.so

xdebug.remote_enable=1
xdebug.remote_host=172.17.0.1
xdebug.remote_port=9000
xdebug.idekey=xdbg
xdebug.remote_cookie_expire_time=36000
xdebug.remote_connect_back=1

Set up Sublime Text

{
    "folders": [{
        "name": "Project",
        "path": ".",
        "follow_symlinks": true,
    }, ],
    "settings": {
        "xdebug": {
            "path_mapping": {
                "/var/www/": "/{my}/{local}/{dir}",
            },
            "url": "http://localhost",
            "port": 9000,
            "ide_key": "xdbg",
        }
    },
}

Start Docker container

docker-compose up

Start debugging

Tools > Xdebug > Start Debugging

OR

Shift + Ctrl + F9

Watch and enjoy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published