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

Nick Halstead's Blog:
Programming Tips #9 "debug_backtrace"
Feb 11, 2008 @ 16:33:00

Nick Halstead continues the "Programming Tips" series on his blog today with tip number nine (a very handy tip indeed) - using debug_backtrace from Larry Garfield.

Despite the proliferation of debugging tools, especially real-time debuggers, "debugging by print statement" remains the most common form of debugging in most programming languages.

An example of its use is included by way of a debug() function that returns the message it a bit friendlier format.

tagged: debugbacktrace error debug programming tip

Link:


Trending Topics: