For all those, that are still fighting with this problem, some handy tips.
Check which version (package) of Eclipse you have? It turns out, that Helios package has some bugs and doesn't stops on breakpoints, when you debug your application as Web Application
. Debugging works only, if you run it as PHP Script
. Which makes it pretty useless for debugging process.
You should consider either reverting to older Galileo Package Eclipse for PHP Developers or installing newest Eclipse Juno (or even newest developer version of Eclipse Kepler), which doesn't have PDT support build in, but you can easily add it to then, using Help > Install New Software..
(point it to http://download.eclipse.org/tools/pdt/updates/release
).
These versions are reported to be able to debug as Web Application
, respecting breakpoints.
Also, remember, that Xdebug must be run as Zend Extension in order to support breakpoints! In other words remove extension=xdebug.so
(on Linux or xdebug.dll
on Windows) line from your php.ini
and replace it with zend_extension=/full/path/to/xdebug.so
(on Linux or zend_extension=X:\full\path\to\xdebug.dll
on Windows). Zend extensions requires full path, even if they're put into /php/ext
folder, as regular PHP extensions. You'll find more info on this in Xdebug FAQ (look for an answer to "Xdebug is only loaded as PHP extension and not as a Zend Extension" question).