1
votes

What would be the best practice for debugging on Symfony2 production website using profiler toolbar? Log files are good but what if I need more info, eg. doctrine queries, routing, etc.

1
Use the dev environment.Emii Khaos
Solution in post below (please see my comment in bottom) stackoverflow.com/a/13101667/564015Ajsti.pl - Maciej Szewczyk

1 Answers

1
votes

Prod environments is not intended to debug application. You should never enable debug mode on production server (prod env). You can see what was wrong (errors ect.) in log files app/logs/prod.log.

You should debug doctrine, routing etc. on dev, staging, preProd etc. servers - places where you run application in dev env.