PHPackages                             siteone/craft-tracy - 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. siteone/craft-tracy

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

siteone/craft-tracy
===================

Tracy plugin for Craft CMS 4

v1.4.0(3y ago)096MITPHPPHP ^8.0.2

Since Jan 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/siteone/craft-tracy)[ Packagist](https://packagist.org/packages/siteone/craft-tracy)[ RSS](/packages/siteone-craft-tracy/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (2)Versions (6)Used By (0)

Tracy plugin for Craft CMS 4
============================

[](#tracy-plugin-for-craft-cms-4)

Plugin integrates awesome [nette/tracy](https://github.com/nette/tracy) debugging tool into [Craft CMS](https://craftcms.com/). See Tracy in action [here](https://nette.github.io/tracy/tracy-exception.html).

[![Screenshot](resources/img/tracy-preview-1.png)](resources/img/tracy-preview-1.png)

Requirements
------------

[](#requirements)

- PHP 8.0.2+
- Craft CMS 4.0+

Installation
------------

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require siteone/craft-tracy

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Tracy.

Usage
-----

[](#usage)

In addition to the standard `dump($var)`, `dumpe($var)`, `bdump($var)` functions in PHP, the plugin provides the following functions in templates:

```
{{ dump(entity) }} or {{ d(entity) }} - Dump variable in place.

{{ dumpe(entity) }} or {{ dd(entity) }} - Dump variable in place and exit.

{{ bdump(entity) }} or {{ bd(entity) }} - Dump variable to debug bar.
```

Settings
--------

[](#settings)

Some settings can be changed. Just create a `config/tracy.php` file, insert the following code (defaults) and change the values as needed:

```
