class Debug
Registers all the debug tools.
@author Fabien Potencier <fabien@symfony.com>
Hierarchy
- class \Symfony\Component\ErrorHandler\Debug
Expanded class hierarchy of Debug
11 string references to 'Debug'
- AbstractHttpTransport::doSend in vendor/
symfony/ mailer/ Transport/ AbstractHttpTransport.php - DebugCodeSniff::process in vendor/
squizlabs/ php_codesniffer/ src/ Standards/ MySource/ Sniffs/ Debug/ DebugCodeSniff.php - Processes this sniff, when one of its tokens is encountered.
- DumpCompletionCommand::configure in vendor/
symfony/ console/ Command/ DumpCompletionCommand.php - Configures the current command.
- DumpCompletionCommand::execute in vendor/
symfony/ console/ Command/ DumpCompletionCommand.php - Executes the current command.
- FinalExceptionSubscriber::onException in core/
lib/ Drupal/ Core/ EventSubscriber/ FinalExceptionSubscriber.php - Handles exceptions for this subscriber.
File
-
vendor/
symfony/ error-handler/ Debug.php, line 19
Namespace
Symfony\Component\ErrorHandlerView source
class Debug {
public static function enable() : ErrorHandler {
error_reporting(-1);
if (!\in_array(\PHP_SAPI, [
'cli',
'phpdbg',
'embed',
], true)) {
ini_set('display_errors', 0);
}
elseif (!filter_var(\ini_get('log_errors'), \FILTER_VALIDATE_BOOL) || \ini_get('error_log')) {
// CLI - display errors only if they're not already logged to STDERR
ini_set('display_errors', 1);
}
@ini_set('zend.assertions', 1);
ini_set('assert.active', 1);
ini_set('assert.exception', 1);
DebugClassLoader::enable();
return ErrorHandler::register(new ErrorHandler(new BufferingLogger(), true));
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
Debug::enable | public static | function |