PHP Vim Debugger: Configuring Apache
I am trying to install Vdebug to debug PHP in Vim. Unfortunately, when I press F5 this message appears after a few seconds
Waiting for a connection (Ctrl-C to cancel, this message will self-destruct in
20 seconds...)
No connection was made
What should I do?
I searched about this in Google, followed this tutorial and this one (and many others) but did not work.
I followed Vdebug instructions.
I do not know how to achieve this:
Edit your apache configure file
In your VirtualHost section, set debugger port same as the one in your vimrc:
php_value xdebug.remote_port **9009**
The remote_port that has just been mentioned is different from what I have in xdebug.ini and vimrc. Please, see below.
Right now I have in /etc/php5/apache2/conf.d/xdebug.ini:
zend_extension=/usr/lib/php5/20121212/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
And in my vimrc
let g:vdebug_options = {}
let g:vdebug_options["port"] = 9000
I installed Xdebug helper Chrome extension too. Using an IDE is not an option: I wish to use Vim.