Home  >  Article  >  Backend Development  >  vdebug+xdebug installation

vdebug+xdebug installation

WBOY
WBOYOriginal
2016-07-29 08:59:071246browse

From eclipse to vim, I didn’t find the single-step breakpoint debugging function at first, which was very frustrating. Then I searched and found the solution of xdebug+vdebug.

Install xdebug

Environment: centos 6.5
xdebug installation:
http://www.cnblogs.com/yixiong/archive/2013/03/29/2988331.html

Use xdebug for debugging on vim

  • Install xdebug
  • Use pathgen to install vim’s vdebug plug-in.
  • Configure vdebug in php.ini. The configuration is as follows:
<code>zend_extension=/path/to/xdebug<span>.so</span>
xdebug<span>.remote</span>_enable=on
xdebug<span>.remote</span>_handler=dbgp
xdebug<span>.remote</span>_host=localhost
xdebug<span>.remote</span>_port=<span>9000</span></code>
  • Notes:
    1. xdebug.remote_port needs to be configured with the port corresponding to php-fpm.
    2. f5 turns on the debugging mode
    3. f6 turns off the debugging mode
    Breakpoint and adds a breakpoint
f2 Next line

f3 Enter the function
  • f4 Exit the function
  • :VdebugEval
  • $
  • val View the running value of the variable.
  • The function provided by vdebug+xdebug
  • breakpoint debugging allows us to go deep into the function.
  • Provides error tracking information. Similar to java.
  • vdebug official documentation: https://github.com/joonty/vdebug

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i

').text(i)); }; $numbering.fadeIn(1700); }); });
  • The above introduces the vdebug+xdebug installation, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn