Xampp + Chrome + SublimeText3 + Xdebug Debug PHP code

Source: Internet
Author: User
Xampp + Chrome + SublimeText3 + Xdebug Debug PHP code =========== Xampp installation and xdebug configuration

1. download and install xampp5.5 or the latest version.

2. modify the [XDebug] Node In % xampp %/php. ini and cancel the comment (the first character of the trip)

3. click admin in xampp control to view phpinfo as follows:

============ Chrome xdebug extension installation

1. install the latest chrome

2. install 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 shown in.

IDE Key select Other input sublime. xdebug


=========== Sublime installation and configuration

1. download sunblime text3 (the sublime text2 Test fails and the breakpoint cannot be entered)

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

3. install the xdebug client. check the installation result on the bottom bar.

4. create the test. php file and add relevant breakpoints.

5. save project as and then edit the project file, add the following

Project file setting code (path is the root directory of the project, and url is the HTTP access address ):

{
"Folders ":
[
{
"Path": "/C/Program Files/XAMPP/htdocs/test"
}
],
"Settings ":
{
"Xdebug ":{
"Url": "http: // localhost/test. php"
}
}
}

6. press ctrl + shift + p and enter xdebug: start debuging (lancuh browser)

7. if it succeeds, when the browser opens the page, 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.