Install vdebug + xdebug

Source: Internet
Author: User
: 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:
    1. The xdebug. remote_port must be configured with the Port corresponding to php-fpm.
    2. Xdebug. remote_host: the IP address of the php-fpm listener, which is generally localhost (127.0.01 );
    3. 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.

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.