Zend Studio for Eclipse is a commercial edition of Eclipse plus the PDT plugin and various other additions. Unfortunately Zend decided to disable the Xdebug support of the Eclipse PDT plugin. Nonetheless if you'd like to use Xdebug for debugging your PHP scripts, follow these simple steps to restore the Xdebug functionality of Eclipse.
How to enable Xdebug support
First you need to quit Zend Studio for Eclipse if it is still running.
- Got to your Eclipse folder, for this article for instance /usr/local/ZendStudio :
cd /usr/local/ZendStudio
. - Enter the plugins folder (i.e. /usr/local/ZendStudio/plugins ):
cd plugins
. - inside the plugins folder create a new folder named disabled (i.e. /usr/local/ZendStudio/plugins/disabled ):
mkdir disabled
. - Now move all files starting with com.zend.php.debug into the disabled folder:
mv com.zend.php.debug* disabled
. - Go back to your main Zend Studio for Eclipse folder and start it via:
./ZendStudio -clean
. - Xdebug is available in the main preferences dialog under PHP Debugging.
If you're working on Windows or Mac OS X, the procedure is likewise - you just need to remember the differences on the command line.
Conclusion
In order to get Xdebug working you now need to setup your computer like it is required for Eclipse PDT. Your can find the manual at http://www.eclipse.org/pdt/documents/XDebugGuide.pdf .
The only drawback is that profiling via the Zend Debugger doesn't work anymore in Zend Studio. But for this I would suggest to use Xdebug and KCacheGrind.