Debugging in PHP Eclipse


Table of Contents

I. Getting Started with PHPEclipse
Installing PHPEclipse
Introduction
Installing the PHPEclipse Plugin
Conclusion
Creating a Project Using PHPEclipse
Introduction
Creating the Project
Adding a Source File to the Project
Conclusion
Debugging a Project Locally Using PHPEclipse and XDebug
Introduction
Creating a Simple Script
Setting up the Debugger
Specifying the PHP Interpreter Path
Creating the Debug Configuration
Adding a Breakpoint
Watching our Script Run
Conclusion
Debugging a Project On a Web Server Using PHPEclipse and XDebug
Introduction
Setting up the Debugger
Specifying the PHP Interpreter Path
Creating the Debug Configuration
Conclusion

List of Figures

1. Installing Additional Eclipse Features
2. The Install/Update Window
3. New Update Site Window
4. Selecting the PHPEclipse Nightly Builds for installation
1. Creating a Project
2. Selecting PHP Project from the Wizard Selection List
3. New PHP Project Window
4. Workspace with the New PHP Project
5. The New PHP File Window
1. XDebug Configuration Pane
2. Debug Configuration Window
3. Debug Breakpoint
4. The Debug Perspective
1. XDebug Configuration Pane
2. Debug Configuration Window
3. Specifying the Path Map from Local to Remote Machine
4. Executing our Script in the Web Browser
5. Adding the XDEBUG_SESSION_START onto the Query String