News Feed
Sections




News Archive
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"
December 19, 2007 @ 08:42:00

Nick Halstead has posted the latest programming tip to his blog today (as written by LArry Garfield) concerning the use of debug_backtrace.

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. [...] Fortunately, PHP offers another debugging tool: debug_backtrace(). It returns an array that is a complete function stack up to the point it is called.

Larry includes a basic example of the function in use - a debug() function that takes in a message, label and a "stealth" setting and outputs a formatted result of the debug_backtrace output.

0 comments voice your opinion now!
programming tip debugbacktrace output example programming tip debugbacktrace output example


blog comments powered by Disqus

Similar Posts

DevShed: Working with Template Classes in PHP 5

Script-Tutorials.com: Protection and Methodologies of Security Vulnerabilities in Web Development

SitePoint PHP Blog: How to Tidy Your WordPress Menu HTML

Brandon Savage's Blog: Q&A: Answering Some Questions About Object-Oriented Programming

DevShed: Generating Outputs from MySQL with Static Members and Methods in PHP 5


Community Events





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


api podcast code introduction interview zendserver threedevsandamaybe conference series laravel language deployment bugfix release voicesoftheelephpant community tips list framework symfony

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