Freelance Projects

Upeksha Wisidagama

Vim Vedug

I’ve been using various debuggers for Vim. But when tried Vdeug, I realized Vdebug has almost all the possible features for a Vim Debugger.

Vdebug Help

Vdebug, technically, said to support languages that have a debugging engine that uses the DBGP protocol. This plugin has been designed with four languages in mind, PHP, Python, Ruby and Perl.

Vdebug: A powerful, fast, multi-language debugger for Vim

Vim Vdebug Debugger Stack

Vdebug Debugger Stack

Vim Vdebug Debugger Watch

Vdebug Debugger Watch

Vim Vdebug Debugger Status

Vdebug Debugger Status

Installing Vdebug Plugin

Clone the Vdebug Github repository in your local bundle.

‘Installing Vdebug’
1
2
cd ~/.vim/bundle
git clone https://github.com/joonty/vdebug.git

PHP5-Xdebug Configuration

You also need to install Xdebug PHP extension using sudo apt-get install php5-xdebug.

Now configure xdebug initialization.

‘Xdebug Initialization (/etc/php5/apache2/conf.d/xdebug.ini)’
1
2
3
4
5
6
7
8
9
10
zend_extension=/usr/lib/php5/20090626+lfs/xdebug.so

xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_mode=req
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000

xdebug.profiler_enable_trigger=1
xdebug.profiler_output_dir=/media/www/xdebugdata

Xdebug Helper Google Chrome Extension

Installl Xdebug Helper Chrome extension to easily start a debugging session via browser.

https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc

Xdebug Helper