Finding code problems

Hi all, looks like a nice friendly place in here. From your own personal use, what tool would you personally recommend for finding coding faults in PHP files please? Thanks. Chris.

A proper IDE (editor) like PHPStorm (paid) or Netbeans (free) that highlights the code while you work, and running the code in a dev environment with error reporting turned on. To debug the code you can use xdebug, it lets you step through the code and often helps with understanding why an application does something wrong.

What kind of code faults? There are a myriad of things that could happen, granted it gets easier with experience to notice, but it depends what you are trying to trackdown. Logic errors are not going to display, they will just not work as expected. Syntax errors should be located with a proper IDE. Code coverage has to do with testing, which is another aspect that a solid IDE can assist with.

Thanks, I will look at NetBeans. What does IDE stand for?

An integrated development environment (IDE) is a software application that provides comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger. Most modern IDEs have intelligent code completion. Some IDEs contain a compiler, interpreter, or both, such as NetBeans and Eclipse
https://en.wikipedia.org/wiki/Integrated_development_environment

Thank you. :slight_smile:

Sponsor our Newsletter | Privacy Policy | Terms of Service