The PDT project is working towards providing a PHP Development Environment framework. This project was formerly known as PHP IDE.
In order to be able to perform debugging using eclipse PDT, you must download one of the following extra packages: XDEBUG or ZEND debugger. I was not able to get the debugger running with XDEBUG even after reading many tutorials and trial error approach. Both packages are free, and it has work nicely for me with ZEND debugger after 5 minutes...
Unfortunately, XDEBUG/ZEND can not be packaged with PDT due to license restrictions, so both tools are not just running out of the box without few efforts.
PDT + Zend in one package thanks to Zend.com (118MB), highly recommended
OR PDT (105MB) and add Zend debugger through software update later
open the php.ini located at \xampp\apache\bin\php.ini
and add the following
[DEBUGGER]
zend_extension_ts=E:\php\bin\eclipse\plugins\org.zend.php.debug.debugger.win32.x86_5.2.15.v20081217\resources\php5\ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1/192.168.1.100
zend_debugger.expose_remotely=always
Notes:
Restart XAMPP apache
By going to http://localhost/xampp/phpinfo.php check that you have a section Zend Debugger
Put now a breakpoint in index.php of any Joomla! installation or deeper in any component you want to debug
And right click on index.php, debug as PHP Web Page (Alt-Shift-D, W)
Attention
While the first page get properly rendered in the internal browser of eclipse PDT, I was getting some strange rendering issues (html code produced look fine), by using an external browser like Chrome, Firefox, the problem has disappear.
Installing with PEAR/PECL is as easy as opening a command prompt and typing
# \xampp\php\pecl install xdebug
open the php.ini located at \xampp\apache\bin\php.ini
and un-comment the following
extension=php_xdebug.dll
and
[XDebug]
;; Only Zend OR (!) XDebug
zend_extension_ts="e:\xampp\php\ext\php_xdebug.dll"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9001
xdebug.remote_handler=dbgp
xdebug.profiler_enable=0
xdebug.profiler_output_dir="\xampp\tmp"
Caveats:
debugging AkoBookPlus:
You need also to install SVN connectors by adding a new update site:
http://www.polarion.org/projects/subversive/download/eclipse/2.0/update-site/ - [required] Subversive SVN Connectors
Eclipse will restart, you should be able to browse www.joomlaCode.org repositories.
Happy Joomla! development and PHP debugging!
Privacy Statement | Copyright Notice | Licenses
© 1999-2012 Waltercedric.com. Designed by Cédric Walter. Sitemap
Reproduction without explicit permission is prohibited. All Rights Reserved. All photos remain copyright © their rightful owners. No copyright infringement is intended.
Disclaimer: The editor(s) reserve the right to edit any comments that are found to be abusive, offensive, contain profanity, serves as spam, is largely self-promotional, or displaying attempts to harbour irrelevant text links for any purpose.