Before we can even start to configure Eclipse, we need to prepare our environment. We will need to install and configure DBG to listen to our PHP engine.
First, we need to install DBG. There are precompiled binaries for Windows, Linux, and FreeBSD. The source code is also available for you to download and compile yourself. We may need to do this to install DBG for Mac OS X or if we need to install for a version of PHP that is not officially supported by the binaries.
The second part of this is to configure Eclipse to act as the DBG client. We will set global preferences and application-specific settings.
Before we start, we need a bit of a warning. Installing and configuring the PHPEclipse debugger is not an easy task. We are configuring PHP, Apache, DBG, and PHPEclipse to work together as a unit. It gets even more complicated when we consider container packages for these products like Eclipse, XAMPP, and Marc Liyanage’s PHP package. You will need to be meticulous... |