Last active
August 29, 2015 14:04
-
-
Save newtonsbm/3a030c11af2d25dcb9d8 to your computer and use it in GitHub Desktop.
Configuring Xdebug PHP + Sublime + Vagrant
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
inside: myproj.sublime-project: | |
{ | |
"folders": | |
[ | |
{ | |
"follow_symlinks": true, | |
"path": "D:\\www\\myproj" | |
} | |
], | |
"settings": { | |
"xdebug": { | |
"path_mapping": { | |
"/home/vagrant/www/myproj":"D:\\www\\myproj" | |
}, | |
"url": "http://localhost:8080/doc", | |
"super_globals": true, | |
"close_on_stop": true | |
} | |
} | |
} | |
path_mapping: 'absolute path on virtual server': 'absolute path on host' | |
sudo apt-get install php5-dev xdebug php5-xdebug | |
>>/etc/php5/apache2/php.ini | |
zend_extension="/usr/lib/php5/20121212/xdebug.so" | |
xdebug.default_enable = 1 | |
xdebug.idekey = "sublime.xdebug" | |
xdebug.remote_enable = 1 | |
xdebug.remote_autostart = 0 | |
xdebug.remote_port = 9000 | |
xdebug.remote_handler=dbgp | |
xdebug.remote_log="/var/log/xdebug/xdebug.log" | |
xdebug.remote_host=10.0.2.2 ; IDE-Environments IP, from vagrant box |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment