3.3.2.1. Configure Xdebug for Atom

Table of Contents

3.3.2.1.2. Assumption

For the sake of this example, we will assume the following paths:

Directory Path
Devilbox git directory /home/cytopia/repo/devilbox
HOST_PATH_HTTPD_DATADIR ./data/www
Resulting local project path /home/cytopia/repo/devilbox/data/www

The Resulting local project path is the path where all projects are stored locally on your host operating system. No matter what this path is, the equivalent remote path (inside the Docker container) is always /shared/httpd.

Important

Remember this, when it comes to path mapping in your IDE/editor configuration.

3.3.2.1.3. Configuration

1. Install php-debug for Atom

See also

php-debug

2. Configure path mapping in config.cson or ui

config.cson
"php-debug":
{
   ServerPort: 9000
   PathMaps: [
     "remotepath;localpath"
     "/shared/httpd;/home/cytopia/repo/devilbox/data/www"
   ]
}

Important

On Windows you have to use \\ as directory separators for the local path mapping. E.g.: C:\\Users\\projects.