Skip to content

Instantly share code, notes, and snippets.

@fcaldarelli
Last active August 12, 2018 15:30
Show Gist options
  • Save fcaldarelli/e50c88f54c7d0bbdfa1fb34614c28d93 to your computer and use it in GitHub Desktop.
Save fcaldarelli/e50c88f54c7d0bbdfa1fb34614c28d93 to your computer and use it in GitHub Desktop.
Configure Atom, Docker, XDebug
I'll use port 9005 instead standard 9000 to avoid conflicts with other applications.
Client Side (Host with Atom):
1) Download php-debug
2) Configure php-debug : Server: 10.254.254.254 - Port: 9005 - Pathmaps : add "/" at the end of path to include all subfolders
3) Enable php-debug panel inside Atom with CTRL+ALT+D (or clicking bottom left button "PHP Debug"
4) Make lo0 alias: ifconfig lo0 alias 10.254.254.254
Server Side (Server inside Docker):
Xdebug configuration:
;zend_extension=xdebug.so
xdebug.remote_enable=1
xdebug.remote_autostart=1
xdebug.remote_connect_back=0
xdebug.remove_host=10.254.254.254
xdebug.remote_port=9005
xdebug.remote_log=/tmp/xdebug.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment