2

I am having difficulty manually debugging my code. Which editors support debugging PHP code, and how do I use them?

  • @BoltClock There are some pretty good answers down there, so I submitted an edit to the question to possibly make it higher quality. Please have a look at my edit and if you think it looks good, consider re-opening the question. Thanks. –  Jun 17 '12 at 02:05

5 Answers5

3

I use Eclipse PDT as IDE, and it supports debugging (for both web-pages and command-line scripts), using the Xdebug extension -- and Zend Debugger, should I add, even if I have never used it.


There are tutorials available on the net explaining how to setup both of those to get the debugger working. For instance, you might want to read :


And here is a screenshot of what it can look like (here, I've set a breakpoint somewhere is the admin section of Dotclear) :


(source: pascal-martin.fr)

I've used Eclipse PDT + Xdebug successfully on several projects, based on several Frameworks -- the last in date being a project based on Drupal.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
Pascal MARTIN
  • 395,085
  • 80
  • 655
  • 663
1

Netbeans, along with many others have XDebug Support.

http://xdebug.org/docs/

https://stackoverflow.com/questions/tagged/xdebug

Community
  • 1
  • 1
Tyler Carter
  • 60,743
  • 20
  • 130
  • 150
1

Most PHP IDEs have integrated support for some debugger or the other.

Maybe these questions prove helpful:

Community
  • 1
  • 1
Pekka
  • 442,112
  • 142
  • 972
  • 1,088
1

Notepad++ has a DBGP plugin that works just fine with Xdebug. Couldn't live without.

djn
  • 3,950
  • 22
  • 21
1

Netbeans is free, cross-platform and compatible with X-Debug.

Here's instructions on how to configure them: http://wiki.netbeans.org/HowToConfigureXDebug

Also, for paid IDEs, I've enjoyed using PHPDesigner in the past. I also hear PHPNuke is very good. All support X-Debug.

Chuck Le Butt
  • 47,570
  • 62
  • 203
  • 289