It is very easy and almost no work to set up XDebug with WAMPServer and SublimeText.
Just install WAMPServer, Select PHP/Apache extensions as desired. To enable XDebug for easy use: start WAMPServer, left click taskbar icon, select php->php settings and enable (XDebug): Remote Debug
. (Free)
Install SublimeText. SublimeText is cross-platform (Windows, Linux, and OSX) and has a free unlimited functionality trial. Then install the SublimeTextXDebug plugin. The plugin itself is free and open source. Installation is quite simple - just run installer for SublimeText, open SublimeText and install Package Control, then in Sublime Text type ctrl-shift-p
and select Package Control:Install Packages
then select SublimeTextXDebug.
Then comes the only setup that is extra for XDebug usage - ie you still have to do all your normal setup of virtualhosts/host file etc however you would normally do it.
Open your root directory in Sublime and select Project
->Save Project As
and then edit your project file to include this: (extra settings can be added as well but they won't conflict)
{
"folders":
[
{
"follow_symlinks": true,
"path": "."
}
],
"settings": {
"xdebug": {
"url": "http://www.mytestingsite.example",
}
}
}
Of course setting the url to be the correct url for your testing.
Breakpoints can then be set by right click->XDebug-> menu.
To run the debugger just select Tools->XDebug->option you want (I suggest the Start Debugging (Launch Browser)
option)... then debug away and details will be displayed in the XDebug panels that opened in SublimeEdit when you started debugging.