W3cubDocs

/Symfony 4.1

Debug

class Debug

Registers all the debug tools.

Methods

static enable(int $errorReportingLevel = E_ALL, bool $displayErrors = true)

Enables the debug tools.

Details

static enable(int $errorReportingLevel = E_ALL, bool $displayErrors = true)

Enables the debug tools.

This method registers an error handler and an exception handler.

Parameters

int $errorReportingLevel The level of error reporting you want
bool $displayErrors Whether to display errors (for development) or just log them (for production)

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Debug/Debug.html