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

Troubleshooting Tips

Correctly calibrating all of software packages that make up the debugger can be tricky. There’s a chance that the debugger will fail on the first run. Usually, the debugging process will execute the script successfully, but the Variables view will be empty and the debugger will not stop at breakpoints. Unfortunately, Eclipse will not give out any further details except for Java exception errors in the Error Log view. Follow these general tips to debug your debugger:

  1. Make sure DBG is installed correctly. If DBG is not even registering in your phpinfo() page, then that needs to be fixed first. No amount of Eclipse configuration will correct the situation.
  2. If DBG is installed correctly, chances are your problem is in the PHPEclipse configuration or php.ini/httpd.conf configuration. Although not impossible, it is probably not an Eclipse error, nor, as long as it’s reported as active in the phpinfo() page, a problem with DBG.
  3. Delete almost everything in your...