Link to home
Start Free TrialLog in
Avatar of elepil
elepil

asked on

Looking for reliable PHP IDE with PHP and JavaScript debugger

This has been a frustrating experience for me. I have tried Aptana Studio 3, but it has issues where it doesn't seem to recognize any PHP code at all and just displays PHP code on the web page. So I dropped that.

I've already tried Netbeans 8.0, and I really liked it. The problem is console.log just wouldn't work in JavaScript anymore for some reason. When I google search, some other people encountered the same problem, but no solutions.

So I would greatly appreciate suggestions for a good PHP IDE that provides robust debuggers for PHP and JavaScript. Please do not answer unless you're using it yourself and is pretty pleased with it.

Thanks.
SOLUTION
Avatar of Peter Hart
Peter Hart
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Eclipse and Komodo are what we've used in teaching environments.  Personally, I do not use any IDE at all.  I use a text editor, TextPad or sometimes BBEdit.  My test environment works like this:

Write code on local computer.  FTP code to internet-based server.  Run tests in Chrome with DevTools open.  

That's a bit of an oversimplification, since it leaves out details of Unit testing, Version control, etc., but it covers the essentials.  I have no disdain for IDE software, I just find myself using and reusing my own libraries.  Perhaps the best answers are the ones we are most familiar with?
Avatar of elepil
elepil

ASKER

Ray, if you're just using a text editor, how do you debug PHP then? And I'm guessing you debug JavaScript through Firebug or something similar?

The ability to step trace through PHP and JavaScript code is crucial to me.
I don't really debug PHP.  When you write code with an OOP design, there is very little debugging needed.  Debugging is mostly an artifact of procedural coding practices.  I just have a look at the data with var_dump() and if it's OK, the logical connections are probably OK, too, since they are defined by the interface.

For JavaScript (jQuery), I use Chrome Dev Tools.
Avatar of elepil

ASKER

Ray, what you say shocks me. Debugging is not an artifact of procedural coding practices; you're saying that if one codes using OOP principles, no debugging will ever be necessary. Debugging is not always wholly about data, oftentimes it's about verifying the accuracy of your logic. When you write an application that works 99% of the time and crashes 1% of the time, it's debugging time, and dumping data is not enough.

With all due respect, but you can't possibly be a software developer, or you would never say that.
What I wrote:
When you write code with an OOP design, there is very little debugging needed.
What you read:
...you're saying that if one codes using OOP principles, no debugging will ever be necessary.
In object-oriented design there is far less logic needed and the software components are deliberately made to be reusable.  Automated unit tests replace the debugging process.  It's not that I don't debug - it's just that I don't debug "by hand" any more.  It's a fraction of my development time now.  It used to be a much larger fraction!
Avatar of elepil

ASKER

Murfur, how do you find the debugging features of Komodo IDE? You didn't say anything about that, and if you look in my original post, debugging is a big thing to me. Thanks.
I don't need to debug as I write the code correctly the first time... 😄

The reality is there isn't so much these days because, like Ray, I'm OOPing but what does come up is usually spotted in a firebug console and dealt with accordingly. That said, I do have one little niggle that I will address with Komodo tomorrow so that I can offer a better answer but in the meantime here's a little light reading:
http://docs.activestate.com/komodo/4.4/debugger.html