How to enable the Xdebug debugger in Zend Studio for Eclipse

| | Comments (3) | TrackBacks (1)

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.

1 TrackBacks

Listed below are links to blogs that reference this entry: How to enable the Xdebug debugger in Zend Studio for Eclipse.

TrackBack URL for this entry: http://www.maxhorvath.com/blog/mt-tb.cgi/11

I’m a great fan of the Zend Studio for Eclipse IDE. But there is one think that just didn’t feel right. At first i started out using the PDT. Free version of Zend Studio for Eclipse. In this IDE it was possible to switch debuggers. So you w... Read More

3 Comments

Great post. Just what i needed. From a Zend point of view i can understand they only want us to use the ZendDebugger. But a bit of choice doesn't kill anybody.

Indeed it's quite to see Zend disabling this feature in their commercial version of Eclipse PDT - I mean we've paid them for Zend Studio for Eclipse. And just because there's Zend Debugger available it doesn't necessarily mean that you shouldn't have the choice of using Xdebug.

I expect Zend would just prefer you didn't know about XDebug, as it's one example of how much of their Platform product can be achieved through free, open source alternatives.

Thanks for the tip. I still haven't migrated to Studio for Eclipse yet.

Leave a comment

Recent Activity

Tuesday

  • I tweeted, "Just published a new blog post:Problems when upgrading to Ubuntu 8.10 - Kernel panic - Unable to mount root fs http://tinyurl.com/5fbb6j"
  • I tweeted, "Dear american voters - don't be silly to vote for McCain ... thanks!"
  • I tweeted, "@janl Just ping me, I've Hot leads ..."

More ...

Conferences

Conferences I presented at:

Programming Blogs - BlogCatalog Blog Directory
Creative Commons License
This weblog is licensed under a Creative Commons License. blogoscoop