Skip to content

Instantly share code, notes, and snippets.

@habahut
Created January 6, 2015 01:15
Show Gist options
  • Save habahut/477586ffe6da9f0960fb to your computer and use it in GitHub Desktop.
Save habahut/477586ffe6da9f0960fb to your computer and use it in GitHub Desktop.
Xdebug With Vim Installation
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
@habahut
Copy link
Author

habahut commented Jan 6, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment