pkSimpleBacktracePlugin - 0.6.0

Prints collapsible stack traces as part of your page

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source | Show as Markdown

pkSimpleBacktracePlugin

pkSimpleBacktracePlugin prints out a backtrace of function calls at the current point in your code's execution. The backtrace is displayed when you click on a JavaScript link in your page. The trace can also be collapsed again. This makes debugging a bit more pleasant.

Usage

To output the trace at the current point in the page:

pkSimpleBacktracePlugin::printTrace();

To return the trace as a string, which is useful if you're building a larger string in a helper:

pkSimpleBacktracePlugin::trace();

Both functions return the trace decorated with handy open and close links as described above.

To do the same, but with plaintext output instead of DHTML:

pkSimpleBacktracePlugin::printTrace(); pkSimpleBacktracePlugin::printTraceText();

Credits

Tom Boutell, tom@punkave.com P'unk Avenue LLC, www.punkave.com

Released under the MIT license. See the LICENSE file for details.