Reputation: 20223
I have an Symfony2 project and from time to time, I have PHP errors in my controller. In order to find out where is the error, I would like to debug the PHP code in the controller.
What do you think is the best practice to debug a controller in Symfony2?
Upvotes: 0
Views: 1715
Reputation: 41934
The error page tells you many usefull things:
Another good practise is to create tests for your controller, both functional and unit tests. Learn more about them in the documentation.
If you need more help, it is better to specify what error you get.
Upvotes: 1