News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DZone.com:
All debugging and no testing makes the PHP programmer a dull boy
July 10, 2012 @ 13:06:02

In this new post on DZone.com, Giorgio Sironi suggests that "all debugging and no testing" in your development practices can be more difficult in the long run.

By now you have already understood that I would always proposed automated end-to-end and unit tests as a way to substitute much of debugging. End-to-end tests can serve only to discover that a bug exists, while a unit test's job is instead to tell you exactly where the problem is.

He advocates testing because it fits two needs - it's repeatable (a consistent, "third party" structure) and it allows you to find the pieces of code causing the issue more quickly rather than having to guess where the problem is an insert checks. He doesn't suggest completely getting rid of things like Xdebug, though. They have their place and he even suggests some configuration changes that can help make it even more effective.

0 comments voice your opinion now!
unittest debug xdebug tool printr vardump


blog comments powered by Disqus

Similar Posts

SitePoint.com: Advanced PHPUnit Testing: Annotations and Mocking

Derick Rethan's Blog: XDebug 2 Released

Project: RIPS - Static Source Code Analyzer for Vulnerabilities in PHP Scripts

Brandon Savage's Blog: Why Great Development Tools Donít Seem To Be Written In PHP

Clay Loveless' Blog: Adios, Zend Studio. Hola, Komodo Pro!


Community Events

Don't see your event here?
Let us know!


api introduction interview voicesoftheelephpant unittest threedevsandamaybe extension feature laravel5 framework community podcast laravel language release wordpress development opinion library series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework