As far as I can tell, debugging is not set up, and it would be such a boon to people.

I see that xdebug is installed... but Eclipse is set to use Zend. Not sure whether Netbeans works or not.

Comments

MichaelCole’s picture

Hi RFay, I didn't configure Eclipse or Netbeans (I got distracted by some paying work. I really needed it).

If you know how to configure it, write it up, and I'll include it in the next build. I'm working this weekend on the next version which should include alot of open issues. It would be great to have Eclipse and XDebug working...

Mike

rfay’s picture

Hi MichaelCole - Thanks for your efforts on this. I'm rusty on how to do it with xdebug (although it works), but full instructions on how to do it using Zend are here: http://drupal.org/node/157609

That's for Mac, I think, but it's the same.

My Ubuntu /etc/php5/conf.d/zend_debugger.ini reads:

zend_extension=/usr/lib/php5/ZendDebugger.so
zend_debugger.allow_hosts=127.0.0.1
zend_debugger.expose_remotely=always

You should probably get it working for yourself and then package it up.

Netbeans requires xdebug, but as I remember it is a no-brainer and can go really easily.

MichaelCole’s picture

This works in Netbeans. Need to check Eclipse config.

MichaelCole’s picture

Had to update to xdebug 2.1 for Netbeans 6.9

rfay’s picture

Bravo! I was able to use both netbeans and eclipse pretty much out of the box. It would probably be better to do basic config on Eclipse so that people have less to learn, but you can't do everything!

MichaelCole’s picture

Hi Ray,

I've got QS 0.7 mostly baked, but I'm having trouble finding time to package it all up and test it.

If you attached some instructions to this bug about configuring xdebug for eclipse, I'll add them to the package, and/or leave a note to end users is they need to config. I won't have time to test it much though.

Cheers,

Mike

rfay’s picture

Here's all I had to do:

Under Preferences->PHP->Debug, set the default to Xdebug.

Preferences->General->Web Browser, add an external web browser (firefox at /usr/bin/firefox) (Note that I deleted my .eclipse to run through this; it's possible that you've already got that set)

The only other things I had to do were the setup of a project and debugging for the project, which I don't think you're trying to take care of for people here. (This is from "Create a new project" down at http://drupal.org/node/157609), except that the debugger is xdebug instead of Zend.

Very nice work on this.

MichaelCole’s picture

Status: Active » Fixed

added to the manualconfig.txt file.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.