最简单的方法是开始调试PHP(Drupal)

What is the simplest way to get started with debugging and hit a specific line in a Drupal install?

  1. Generally?
  2. With Eclipse? (how difficult?)
  3. On Windows, knowing and having access to Visual Studio (How Difficult with Visual Studio?)

(No Pay: Free or trial)

Locally on Windows I am using the Acquia Drupal WAMP-stack. On the server Ubuntu/Webmin/LAMP.

debugging Drupal is as easy as debugging any PHP application in fact :) there's Visual Studio plugin which adds support for PHP http://www.jcxsoftware.com/ - it is commercial unfortunately.

If you're looking for free solutions working with X-Debug I'd recommend

well hopefully you won't be mad with mebut I'll recommend also my own IDE as well

  • HateML 2 - http://hateml.com/ - not 100% ready yet, but working with projects & debugger is pretty complete. What's important, I've updated it to work with latest XDebug release which broken support for "watches" feature in some old IDEs.

There are also Java-based IDEs (like mentioned Eclipse, or Aptana, NetBeans etc) however I have no experience with them as they consume way too much memory as for me

There's a few tutorials out there on how to setup Eclipse together with Xdebug. It's a great combo that I use myself.

Sometimes for light-weight debugging, I have found the FirePHP plugin to firefox to come really handy.