News Feed
Jobs Feed
Sections




News Archive
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

Adam Bard: The Same App 4 Times: PHP vs Python vs Ruby vs Clojure

PHP Security Blog: Cross Virtual Host Cookie Theft

Andi Gutmans' Blog: PHP 5 Power Programming passes 1 Million downloads!

Hiveminds Magazine: PHP: What to Do When Your Web Host Turns Off Fopen

JSLabs: How to create a self extracting PHP script


Community Events









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


opinion object tool community api introduction zendframework2 framework example code unittest phpunit interview database language composer development release testing podcast

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