Xampp+chrome+sublime text3+xdebug Debugging PHP code

Source: Internet
Author: User
===========xampp Installation and Xdebug configuration

1. Download the installation xampp5.5 or the latest version

2. Modify the [XDebug] node in%xampp%/php/php.ini, uncomment (move out of the beginning; character)

3. Click Admin in xampp control to view Phpinfo as follows

===========chrome Xdebug Extended Installation

1. Install the latest Chrome

2. Installing the Xdebug Extension

Https://chrome.google.com/webstore/detail/xdebug-helper/eadndfjplgieldjbigjakmdgkmoaaaoc?utm_source= Chrome-app-launcher-info-dialog

3. Set the Xdebug plug-in as.

IDE key Select other input Sublime.xdebug


===========sublime Installation and Configuration

1. Download Sunblime text3 (Sublime Text2 test not successful, can not enter the breakpoint)

2. Install the package control Https://packagecontrol.io/installation#st3

3. Install Xdebug client, and look at the bottom bar of the installation results

4. Create a new test.php file and add the associated breakpoint.

5. Save Project as then edit the project file, adding the following

Project file Setup code (path is the root of the project, URL is the HTTP access address):

{
"Folders":
[
{
"Path": "/c/program files/xampp/htdocs/test"
}
],
"Settings":
{
"Xdebug": {
"url": "Http://localhost/test/test.php"
}
}
}

6. Press CTRL + SHIFT + p to enter Xdebug:start debuging (Lancuh browser)

7. If the browser opens the page when successful, the breakpoint set in sublime text will enter

  • 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.