Last active
August 12, 2018 15:30
-
-
Save fcaldarelli/e50c88f54c7d0bbdfa1fb34614c28d93 to your computer and use it in GitHub Desktop.
Configure Atom, Docker, XDebug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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