Last active
September 8, 2016 19:21
-
-
Save funkatron/9915279 to your computer and use it in GitHub Desktop.
Settings for XDebug and Codebug so PHP debugging actually fucking works
This file contains 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
Codebug config====================== | |
Paths | |
LOCAL REMOTE | |
/local/path/to/php/app /server/path/to/php/app | |
xdebug config======================= | |
root@ed:/vagrant/projects/acp/frontend/app# more /etc/php5/fpm/conf.d/20-xdebug.ini | |
; configuration for php xdebug module | |
; priority=20 | |
zend_extension=/usr/lib/php5/20121212/xdebug.so | |
xdebug.remote_enable=1 | |
xdebug.remote_handler=dbgp | |
xdebug.remote_port=9000 | |
xdebug.remote_autostart=1 | |
xdebug.remote_connect_back=1 | |
Codebug===================== | |
Hit the Power button so it glows: http://img.spz.im/yzZSt.png | |
Make a request to server, Codebug should break on first line. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the tip,
@tylerdigital, here is what i've put in my LOCAL REMOTE mapping in order to get it working:
LOCAL:
/Users/{username}/{vagrantbox}/{wordpress-folder}/wp-content/plugins/{my-plugin-name}
REMOTE:
/var/www/public/wp-content/plugins/{my-plugin-name}
I'm debugging a WordPress plugin but I imagine it will work with any php code.