PHPackages                             treast/kirby-debugbar - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. treast/kirby-debugbar

ActiveKirby-plugin[Debugging &amp; Profiling](/categories/debugging)

treast/kirby-debugbar
=====================

PHP Debug Bar for KirbyCMS

1.4.1(1y ago)18523↓50%MITJavaScript

Since May 2Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Treast/kirby-debugbar)[ Packagist](https://packagist.org/packages/treast/kirby-debugbar)[ Docs](https://github.com/Treast/kirby-debugbar)[ RSS](/packages/treast-kirby-debugbar/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (10)Used By (0)

PHP Debug Bar for KirbyCMS
==========================

[](#php-debug-bar-for-kirbycms)

[![Demonstration](https://user-images.githubusercontent.com/3629578/235644730-5c40eed9-048f-4bbb-b72a-5d5441e50549.gif)](https://user-images.githubusercontent.com/3629578/235644730-5c40eed9-048f-4bbb-b72a-5d5441e50549.gif)

✨ Features
----------

[](#-features)

- Integration of [PHP Debug Bar](https://github.com/maximebf/php-debugbar)
- Easy log messages
- Preview configuration, hooks called, files, page variables, requests &amp; exceptions
- More soon 👀 ...

🔌 Installation
--------------

[](#-installation)

⚠️ This plugin uses the Symfony VarDumper package, which conflicts with the KirbyCMS dump function. To use this plugin, you must imperatively change the `index.php` file at the root by this content:

```

```

### How to log ?

[](#how-to-log-)

```
$site->logger()->debug('This is a debug');
$site->logger()->emergency('This is an emergency');
$site->logger()->error('This is an error');
$site->logger()->critical('This is a critical');
$site->logger()->info('This is an info');
$site->logger()->warning('This is a warning');
$site->logger()->alert('This is an alert');
$site->logger()->notice('This is a notice');
$site->logger()->log('debug', 'This is also a debug');
// Or you can chain with the ->log() function
$site->log()->title()->log();
$page->children()->log()->first()->log();
```

### Options

[](#options)

#### Explanations

[](#explanations)

Option nameDefaultTypeDescription`treast.debugbar.force``false``boolean`If enabled, will display the debug bar even with `debug === false``treast.debugbar.tabs.logs``true``boolean`Show logs tab`treast.debugbar.tabs.config``true``boolean`Show config tab`treast.debugbar.tabs.events``true``boolean`Show events tab`treast.debugbar.tabs.files``true``boolean`Show files tab`treast.debugbar.tabs.variables``true``boolean`Show variables tab`treast.debugbar.tabs.request``true``boolean`Show request tab`treast.debugbar.tabs.exception``true``boolean`Show exceptions tab#### config.php

[](#configphp)

```
