: This article describes how to install vdebug + xdebug. For more information about PHP tutorials, see. From eclipse to vim, the single-step breakpoint debugging function was not found at the beginning, so it was uncomfortable. then I searched for the xdebug + vdebug solution.
Install xdebug
Environment: centos 6.5
Xdebug installation:
Http://www.cnblogs.com/yixiong/archive/2013/03/29/2988331.html
Use xdebug on vim for debugging
- Install xdebug
- Use pathgen to install the vim vdebug plug-in.
- Configure vdebug in php. ini. The configuration is as follows:
zend_extension=/path/to/xdebug.soxdebug.remote_enable=onxdebug.remote_handler=dbgpxdebug.remote_host=localhostxdebug.remote_port=9000
- Note:
- The xdebug. remote_port must be configured with the Port corresponding to php-fpm.
- Xdebug. remote_host: the IP address of the php-fpm listener, which is generally localhost (127.0.01 );
- Restart php-fpm after configuration
Use of vdebug
- F5 enable debugging mode
- F6 disable debugging mode
- Breakpoint and Breakpoint
- Next row in f2
- F3 entry function
- F4 exit function
- : VdebugEval $ val.
Functions provided by vdebug + xdebug
- Breakpoint debugging allows us to go deep into the function.
- Provides error tracking information. Similar to java.
Vdebug official document: https://github.com/joonty/vdebug
'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
'). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script
The above describes the installation of vdebug + xdebug, including the content, and hope to be helpful to friends who are interested in PHP tutorials.