Kint already comes with a autoload
section in it's composer.json and the Kint class itself doesn't have a namespace.
composer
will take care of the autoloading for you which means the require
statement isn't necessary.
You can use this "debugging tool" in any class (controller,entity, ...) like this:
\Kint::dump($someVariable);
It's just a prettyfied version of var_dump()
.
I suggest you take a look at raulfraile/LadyBugBundle which uses ladybug instead of Kint
... but can highlight symfony/doctrine classes with funky symbols aswell.
If you want real debugging capabilities ... install xdebug.