简体   繁体   中英

Simplest way do get started debugging 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.

If you're looking for free/os options I would recommend using Eclipse PDT with XDebug.

A good place to start is http://www.eclipse.org/pdt/articles/debugger/os-php-eclipse-pdt-debug-pdf.pdf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM