Created
January 6, 2015 01:15
-
-
Save habahut/477586ffe6da9f0960fb to your computer and use it in GitHub Desktop.
Xdebug With Vim Installation
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
Install vim: must have +python and +signs | |
install: http://www.vim.org/scripts/script.php?script_id=2508 | |
run these commands: | |
sudo apt-get install php5-dev php-pear | |
sudo pecl install xdebug | |
grab location of xdebug.so from installation output, put here: /etc/php5/apache2/php.ini | |
zend_extension=`/path/to/xdebug.so` | |
xdebug.remote_enable = 1 | |
xdebug.remote_port = 9000 | |
xdebug.remote_host = localhost | |
apopend "?XDEBUG_SESSION_START=1" to url | |
F5 starts debugger inside vim. | |
http://ubuntuforums.org/showthread.php?t=525257 | |
http://tech.blog.box.com/2007/06/how-to-debug-php-with-vim-and-xdebug-on-linux/ | |
creating this file provides info about php: | |
<?php phpinfo(); ?> | |
load it with web browser |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://mutelight.org/minimal-guide-to-debugging-php-with-xdebug-and-vim
vim bindings