FreeBSD Server Administration

« My PHP Journey | Main | Confusing Server Debug in Eclipse »

February 04, 2008

Eclipse

PDT User Guide in the help manual is very helpful, I followed its 'Basic Tutorials' smoothly until I tried the debug part. The server debug configuration is confusing to me. After lots of attempts, I finally got Eclipse working with XDebug.

Here are some notes, very probably I missed or understood something.

- Debug a PHP script, execute a PHP script directly.
This is very easy, just install Zend Executable Debugger. I installed it with the update mode.

- Debug a PHP Web page, through a web server
In the PDT installation guide, Zend Web Server Debugger links to Zend Platform - a commercial product. Actually Zend does offer a free server debugger, but there is no Windows version, is the cygwin version for Windows? Maybe I should try it before XDebug.

- My every XDebug attempt ended with a clueless Apache application error, the breakpoint made the debug stop, but one more step crashed the debug process. I tried to change Apache configuration and other trivia with the help of XDebug Support In PDT (A must read for XDebug config), I don't know the exact problems, it suddenly worked magically.

Anyway, Eclipse is ready and looks great, I will continue reading my online book. I believe learning PHP with a powerful IDE would be fun.


Category : My PHP Journey

Posted by FreeBSD Newbie at February 4, 2008 05:23 PM

Comments

Post a comment



(Optional, will not be shown to the public)

Remember Me?