Skip to main content

Symfony Debug Command

The Symfony Debug Command allows you to debug your Symfony application.

Debugging Routes

To show all available routes, run the following command:

symfony console debug:router

To show all available routes in JSON format, run the following command:

symfony console debug:router --format=json

To show all available routes in XML format, run the following command:

symfony console debug:router --format=xml

To show all available routes in Markdown format, run the following command:

symfony console debug:router --format=md

Debugging Autowiring

To show all available autowiring aliases, run the following command:

symfony console debug:autowiring

Debugging Container

Debugging Container (All Services)

To show all available container services, run the following command:

symfony console debug:container

To show all available container services and hidden services, run the following command:

symfony console debug:container --show-hidden

To show all available container services in JSON format, run the following command:

symfony console debug:container --format=json

To show all available container services in XML format, run the following command:

symfony console debug:container --format=xml

To show all available container services in Markdown format, run the following command:

symfony console debug:container --format=md

Debugging Container Environment Variables

To show all available container environment variables, run the following command:

symfony console debug:container --env-vars

Debugging Container Loggers

To show all available container loggers, run the following command:

symfony console debug:container log

Debugging Environment Variables

To show all available environment variables, run the following command:

symfony console debug:dotenv

Debugging Events

To show all available events, run the following command:

symfony console debug:event-dispatcher

Debugging Form Types

To show all available form types, run the following command:

symfony console debug:form

Debugging Translations

To show all available translations, run the following command:

# Eg. for English
symfony console debug:translation en

Debugging Twig

To show all available twig functions, run the following command:

symfony console debug:twig

Debugging Firewall

To show all available firewall, run the following command:

symfony console debug:firewall

Debugging Messenger

To show all available messenger, run the following command:

symfony console debug:messenger