• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/diag/exceptionhandler.php
  • Класс: BitrixMainDiagExceptionHandler
  • Вызов: ExceptionHandler::initializeEnvironment
protected function initializeEnvironment()
{
	if ($this->debug)
	{
		error_reporting($this->handledErrorsTypes);
		@ini_set('display_errors', 'On');
		@ini_set('display_startup_errors', 'On');
		@ini_set('report_memleaks', 'On');
	}
	else
	{
		error_reporting(E_ERROR | E_PARSE);
	}
}