Reader small image

You're reading from  Mastering Sublime Text

Product typeBook
Published inDec 2013
PublisherPackt
ISBN-139781849698429
Edition1st Edition
Right arrow
Author (1)
Dan Peleg
Dan Peleg
author image
Dan Peleg

Dan Peleg is an accomplished software engineer. As a former developer in the Israeli Intelligence Force, he holds extensive experience in both defense and robotic industries, and has previously lectured at DefCon conventions. Dan has developed unique algorithms for robotic platforms, specializes in a variety of software platforms, and currently works as the CTO for an American startup company.
Read more about Dan Peleg

Right arrow

Debugging PHP with Xdebug


Xdebug is a PHP extension that provides us with debugging and profiling capabilities. It includes stack traces, real-time parameters' display, filenames, and line indicators. Sublime has a great plugin to help us debug our PHP code while using Xdebug. Having Xdebug installed is mandatory for this section; for more information, please visit: http://xdebug.org/docs/install.

Using Xdebug for Sublime

There are two Xdebug plugins for Sublime. We will install the Xdebug Client. To install the SublimeTextXdebug package, we'll use Package Control. Open the command palette by pressing Ctrl + Shift + P in Windows or Linux, and Command + Shift + P in OS X. Then choose Install Package and install the Xdebug Client package.

After installing, we'll need to change the xdebug.ini configuration file:

[xdebug]
zend_extension = "/absolute/path/to/our/xdebug-extension.so"
;zend_extension = "C:\Program Files (x86)\PHP\ext\php_xdebug.dll"
Xdebug.remote_enable = 1
Xdebug.remote_host = "127...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Mastering Sublime Text
Published in: Dec 2013Publisher: PacktISBN-13: 9781849698429

Author (1)

author image
Dan Peleg

Dan Peleg is an accomplished software engineer. As a former developer in the Israeli Intelligence Force, he holds extensive experience in both defense and robotic industries, and has previously lectured at DefCon conventions. Dan has developed unique algorithms for robotic platforms, specializes in a variety of software platforms, and currently works as the CTO for an American startup company.
Read more about Dan Peleg