How to debug in VI

Using vim 7.1, I recently heard that you can debug php in VI. But how?

+4
source share
2 answers

If you mean debugging a vim script, vim -D is the first step.

Read more in Debugging Vim Scripts .

+2
source

Look at the link to use xdebug with vim that someone sent for a full debugger, but as an additional tip, you can do this from vim to run syntax checking on the current PHP script:

:!php -l % 

I assigned this to my F5 key by putting it in my .vimrc file (in your home directory (~)):

 nmap <F5> :! php5 -l %<CR> 
+2
source

All Articles