srt4rulez / timber-tracy-bar-panel
A Tracy Bar Panel with Timber info for debugging
Installs: 936
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 1
Forks: 0
Open Issues: 1
pkg:composer/srt4rulez/timber-tracy-bar-panel
Requires
- php: >=5.4
- tracy/tracy: *
This package is auto-updated.
Last update: 2025-11-28 14:54:42 UTC
README
What info does it show?
This tracy panel shows info about the following:
- Dumps the current Timber context into the same format as a Tracy BarDump
- Rendered Twig File(s)
- Version
- Template Directories
- Twig Cache
- Cache
- Auto Meta
- Autoescape
Requirements:
- Timber
- Tracy Debugger
- PHP 5.4+
Getting Started
Install via composer:
composer require srt4rulez/timber-tracy-bar-panel --dev
Add composer autoload to functions.php (You are using this in a WordPress theme right?):
require __DIR__ . '/vendor/autoload.php';
Enable tracy, then add the TimberBarPanel, like so:
Tracy\Debugger::enable( Tracy\Debugger::DEVELOPMENT ); Tracy\Debugger::getBar()->addPanel( new srt4rulez\TimberBarPanel );
You could wrap tracy in a condition for WP_DEBUG and ! is_admin() (I've experienced uploads error when tracy was enabled on admin side)
if ( WP_DEBUG && ! is_admin() ) { Tracy\Debugger::enable( Tracy\Debugger::DEVELOPMENT ); Tracy\Debugger::getBar()->addPanel( new \srt4rulez\TimberBarPanel ); }
Final functions.php:
require __DIR__ . '/vendor/autoload.php'; if ( WP_DEBUG && ! is_admin() ) { Tracy\Debugger::enable( Tracy\Debugger::DEVELOPMENT ); Tracy\Debugger::getBar()->addPanel( new srt4rulez\TimberBarPanel ); }
Thanks
- Timber for the awesome WP framework
- Tracy Debugger for the awesome debugging tool
License
MIT

