Book Image

PHPEclipse: A User Guide

Book Image

PHPEclipse: A User Guide

Overview of this book

The fusion of Eclipse, the leading open source development environment, and PHP is an exciting prospect for web developers. This book makes sure that you are up and running as quickly as possible, ready to take full advantage of PHPEclipse's tuned PHP development tools, without requiring any prior knowledge of Eclipse. You will begin with installing and configuring PHPEclipse, before moving onto a tour of the Eclipse environment, familiarizing you with its main components. As a plug-in to Eclipse, PHPEclipse is able to harness the platform to provide a rich and powerful development experience. For helping you improve the efficiency of your PHP coding, the book details the powerful editing features of PHPEclipse, and shows you how to use it to better organize your application code. You will see how PHPEclipse helps you throughout the development lifecycle, and learn how to use PHPEclipse's debugger to troubleshoot and step through your PHP code as it executes. The book rounds off with coverage of accessing databases and managing source code from within the. For the final step for your application, you will learn how to deploy your site to a production server."
Table of Contents (12 chapters)
11
Index

Configuring Eclipse as the Debugger Client

PHPEclipse debugger configuration can be divided into two parts.

The first part is specifying the interpreter. In other words, you are telling PHPEclipse where the DBG-enhanced PHP executable is in your system. PHPEclipse passes the debugging file to this binary, listens to the DBG output, and manipulates Eclipse to give you feedback on what the PHP script is doing.

The second part is to create a debugging configuration for the file you want to test.

Specifying an Interpreter

To specify an interpreter, go to Windows | Preferences | PHPeclipse Web Development | PHP | Installed Interpreters.

Specifying an Interpreter

Click on the Add button to add a new interpreter. This will bring up an Open File dialog box.

Specifying an Interpreter

Using this dialog box, specify the absolute path to the PHP binary.

If you are using XAMPP, use the PHP executable in the \xampp\apache\bin\ directory (for example, c:\apachefriends\xampp\apache\bin\) as opposed to the one in the \xampp\php\ directory. The \apache\bin\ directory...