Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8801339
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T00:48:32+00:00 2026-06-14T00:48:32+00:00

I have an Symfony2 project and from time to time, I have PHP errors

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T00:48:34+00:00Added an answer on June 14, 2026 at 12:48 am

    The error page tells you many usefull things:

    • The error message – What is exactly going wrong? (and something: how can I solve this?)
    • The line number – On which line in the controller are things going wrong?
    • The exception name – Hover over the name to see the fully qualified namespace. It tells you on which component something is going wrong.
    • The trace – You can see a full trace path which tells you much usefull things: On which class/method is the exception thrown? Which methods are executed first?

    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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have developed a project in symfony2.0.16. Now I would like to upgrade to
I have a Symfony2 project and I would like to be able to create
When I update my Symfony2 project I always have to do this: root@xxx:/var/www/project# php
I have a PHP project (Symfony2) that uses RabbitMQ. I use its as simple
I have an object from inside a Symfony2 project. Here follows the code. namespace
I have a file (an xmlrpc library for PHP) that I would like to
I have a Symfony2 project with a MySQL db: #app/config/config.yml doctrine: dbal: driver: %database_driver%
I have a question about symfony2. I have a project and I am using
I want basic theming support in my Symfony2 project, so I wanted to have
I have a slow query in a Symfony2 project using Doctrine2. I am unsure

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.