# symfony/debug

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/symfony-debug).**

7,186 stars · 46 forks · PHP · MIT · archived

## Links

- GitHub: https://github.com/symfony/debug
- Homepage: https://symfony.com/debug
- awesome-repositories: https://awesome-repositories.com/repository/symfony-debug.md

## Topics

`component` `php` `symfony` `symfony-component`

## Description

The Symfony Debug component is a PHP debugging toolkit that converts PHP warnings and notices into exceptions for consistent runtime error handling. It provides a unified error management system by registering a global error handler that intercepts all PHP errors and forwards them to an exception-based pipeline.

The component catches uncaught PHP exceptions and displays detailed stack traces enriched with file, line, and call chain context for developer visibility. It maps PHP error severity levels to corresponding exception types, enabling granular control over how different error conditions are handled during development.

The debugging workflow is integrated through a runtime error-to-exception pipeline that chains error detection, conversion, and exception throwing into a seamless flow. The component also provides an uncaught exception display layer that renders formatted error output for debugging purposes.

## Tags

### Web Development

- [PHP Development Toolkits](https://awesome-repositories.com/f/web-development/php-development-toolkits.md) — Provides tools to ease debugging PHP code with error and exception management.
- [PHP Error-to-Exception Bridges](https://awesome-repositories.com/f/web-development/error-handling/native-error-reporters/native-panic-to-exception-bridges/php-error-to-exception-bridges.md) — Converts PHP errors into exceptions via a global error handler for unified error management.
- [PHP Error-to-Exception Converters](https://awesome-repositories.com/f/web-development/global-error-handlers/php-error-to-exception-converters.md) — Converts PHP warnings and notices into exceptions for consistent runtime error handling.

### Development Tools & Productivity

- [PHP Error Handlers](https://awesome-repositories.com/f/development-tools-productivity/php-error-handlers.md) — Registers a single error handler that intercepts all PHP errors and forwards them to the exception system.
- [Development Workflow Integration](https://awesome-repositories.com/f/development-tools-productivity/development-workflow-integration.md) — Integrates error handling into a PHP development workflow to catch issues early.

### Programming Languages & Runtimes

- [PHP Exception Handlers](https://awesome-repositories.com/f/programming-languages-runtimes/php-exception-handlers.md) — Activates a global error and exception handler that converts warnings and notices into exceptions for consistent debugging. ([source](https://cdn.jsdelivr.net/gh/symfony/debug@4.4/README.md))
- [Exception Renderers](https://awesome-repositories.com/f/programming-languages-runtimes/php-exception-handlers/exception-renderers.md) — Catches unhandled exceptions and renders detailed, formatted error output for developer visibility.

### Software Engineering & Architecture

- [Error Code to Exception Mapping](https://awesome-repositories.com/f/software-engineering-architecture/error-code-to-exception-mapping.md) — Maps PHP error severity levels to corresponding exception types for granular control.
- [PHP Error-to-Exception Pipelines](https://awesome-repositories.com/f/software-engineering-architecture/error-handling/exception-logic-structures/exception-handling-strategies/exception-verification/runtime-exception-detection/php-error-to-exception-pipelines.md) — Chains error detection, conversion, and exception throwing into a seamless runtime debugging flow.
- [PHP Stack Trace Enrichers](https://awesome-repositories.com/f/software-engineering-architecture/stacks/stack-trace-formatters/stack-trace-generation/php-stack-trace-enrichers.md) — Augments exception stack traces with file, line, and call chain details for debugging.
