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