Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 658 Bytes

debug.md

File metadata and controls

40 lines (26 loc) · 658 Bytes

Debug

Prifiler Pack

Install profiler pack for Symfony projects:

composer require profiler --dev

Shortcut for dump($x);die in view or controller:

dd($x);

Debug pack

Install debug pack that has Monolog:

composer require debug

Unpack a pack

composer unpack symfony/debug-pack

This command will extract packages from the pack.

Logs

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