Install profiler pack for Symfony projects:
composer require profiler --dev
Shortcut for dump($x);die
in view or controller:
dd($x);
Install debug pack that has Monolog:
composer require debug
composer unpack symfony/debug-pack
This command will extract packages from the pack.
Logs will help us to investigate issues not only in development, but also in production.
composer require logger
Log files can be found at var/log/dev.log