Okay, I have almost given up.

I downloaded the Eclipse Zend PDT meant to debug drupal. http://www.zend.com/en/community/pdt and I set it up very nicely to do my regular editing and developing of my Drupal environment.

But I want to actually debug and investigate lots of different coding situations. However, we decided not to put Zend Debugger on our actually server. So I want to set up a zend debugger locally.

I am running Windows XP SP2 (and I also have a windows Vista Business 64bit I plan to set up after this). I am running PHP 5.2.6 also

Here is what I have tried:
Installed the XAMPP and I am currently running the Apache, MYSQL, and Filezilla service. They were installed "C:\xampp" by default.
I went to various guides online including:
http://www.thierryb.net/pdtwiki/index.php?title=Using_PDT_:_User_Guide_:...
http://www.thierryb.net/pdtwiki/index.php?title=Using_PDT_:_Installation...
http://downloads.zend.com/pdt/server-debugger/
http://blog.tigeryao.com/2008/how-to-allow-zend-optimizer-and-zend-debug...

I think I followed everything those people said to the best of my ability. Nothing. Nada.

I tried every which way to edit my darn php.ini file. I put my dummy.php file in almost every single possible folder that could be my root! I restarted my Apache service each time I changed it. I checked my changes here http://localhost/xampp/.

It just does not work at all. This is very frustrating.

For reference, my local Eclipse Drupal setup is located in "C:\Documents and Settings\Eric\My Documents\MySite" but I don't know how to set that as the root directory? I don't even know what my PDT thinks my root directory is supposed to be. I know in C:\xampp\apache\bin\php.ini I can set a doc_root but that didn't change anything.

So the guides online don't help. The full on "Zend Debugger Eclipse" set up which is meant to be a debugger doesn't work.

How do I actually set up Eclipse to do local Drupal Debugging?

Please someone here help me!!

Thanks

Comments

esend7881’s picture

As a follow up, I Did more research and I kept finding that Zend Debugger is just bad. So I tried XDebug and it seems to be working.

Its pretty slow and times out, but I think I am on track to get that thing working.

If anyone cares to share anything, please do. I'd love to read more on this topic. Hopefully one day someone will create a product that is a 1 click install and sets everything up, sort of like Visual Studio or something.

WorldFallz’s picture

I havent had a chance to try it yet, but maybe take a look at http://www.codelobster.com

===
"Give a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime." - Lao Tzu
"God helps those who help themselves." - Ben Franklin
"Search is your best friend." - Worldfallz

summit’s picture

I will look into codelobster also, subscribing for best way to debugging Drupal!
Greetings,
Martijn

mattyoung’s picture

>Its pretty slow and times out

Try increase 'max_execution_time' in php.ini.

>I think I am on track to get that thing working.

Please keek posting on what you figure out. This is a timely subject for me. I'm beginning to setup my local devel env with debugging.

jlyon’s picture

I tried about 10 different tutorials on the web, and kind of had Zend debugger working with the help of a nasty dummy.php file. The I found this tutorial (http://krimson.be/debugging-drupal-6-using-xdebug) for setting up Eclipse on Ubuntu and xDebug. Finally a simple tutorial that works! He gives a lot of good info on how to optimize Eclipse settings for debugging and goes through setting up every aspect of Eclipse. Highly recommended.

-Jeff

Summitt Dweller’s picture

Jeff,

I was so pleased to see your comment since I think I've been down the same (dead end) path. However, the link you presented (above) is broken. Any idea where I might turn to find concise setup instruction for my target Eclipse/Ubuntu/xDebug config?

Thanks.

WorldFallz’s picture

francewhoa’s picture

Various how-to handbooks for Ubuntu at http://drupal.org/node/765106

Loving back your Drupal community result in multiple benefits for you  
francewhoa’s picture

Same here. I wrote a how-to handbook for Windows XP at http://drupal.org/node/765120

This will install the most recent Eclipse 3.5.x on Windows. Then you simply activate any debugger you like from Eclipse menu HELP > INSTALL NEW SOFTWARES

Worked for me. Enjoy :)

Loving back your Drupal community result in multiple benefits for you