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

DevShed:
Using Conditional Statements with the Xdebug Extension
Mar 04, 2009 @ 18:08:43

DevShed continues their series looking at the XDebug extension for PHP with this fifth part looking a bit more at the code coverage functions it comes with.

In this fifth part of a series on using the Xdebug extension to help debug your PHP programs, we'll take a closer look at the xdebug_start_code_coverage() and xdebug_get_code_coverage() functions. Specifically, we'll see how we can extend their usage when working with conditional statements. As always, we'll complement theory with a number of hands-on examples.

They start with a review of the previous tutorial (that started the look at code coverage) and continue on to show how to extend a code coverage class to debug some conditionals and return the results in a simple echoed output.

tagged: conditional statement xdebug tutorial coverage

Link:


Trending Topics: