Migrate a legacy project still using symfony/debug to the modern symfony/error-handler component to restore security patches and updates.
Understand how Symfony's error display has evolved when maintaining an older codebase that still depends on this deprecated package.
Deprecated since Symfony 4.4, receives no updates or security patches, migrate to symfony/error-handler before using in any active project.
symfony/debug is a PHP component from the Symfony project, a popular framework for building web applications. Its purpose was to improve error handling during development: rather than the plain, hard-to-read error messages PHP produces by default, this component displayed them in a more structured and readable format, making it easier to locate the source of a problem in your code. Symfony packages its functionality into small, independent components that can be installed separately. You install this one with Composer, PHP's standard package manager, and activate it with a single function call in your application's bootstrap code. However, this component is deprecated. The README states plainly that symfony/debug has been deprecated since Symfony 4.4, released in 2019, and that the ErrorHandler component is its replacement. Deprecated means the code still exists and may still work, but it will no longer receive updates, bug fixes, or security patches. Any project currently using symfony/debug is expected to migrate to the ErrorHandler component instead. The README itself is very short: one installation command, one code example showing how to enable it, and links to Symfony's main issue tracker for reporting problems. The fuller documentation and integration examples have always lived in Symfony's central documentation site rather than in this standalone repository. Given that this package is no longer under active development, its star count of over 7,000 reflects its historical use during the years when it was Symfony's standard debugging component, rather than any current activity.
← symfony on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.