Welcome Guest, Not a member yet? Register   Sign In
Is there a simple way to disable Kint and XDebug?

I find there is information overload rendered when CI4 encounters an error and I prefer to use PHP error reporting. Usually fix the first error and the rest disappear.

I did find that when CI_DEBUG  is false Kint is disabled  also the app/Config/Boot/ files can ensure Kint is never enabled.

I have searched and unable to find a simple way to disable CI4 XDebug error reporting.

XDebug are something that needs to disable within PHP itself if I recall correctly.

Found it Smile

Add the following to app/Views/errors/html/error_exception.php

PHP Code:
$logFile '../writable/logs/log-' .date('Y-m-d') .'.log';
$tmp file_exists($logFile) ) :
$tmp print_rfile_get_contents($logfile), TRUE );
'<h2>'.__file__  .'</h2>';
'<pre>' .$tmp .'</pre>';

// ORIGINAL error_exception.php contents below

<?php $error_id 
uniqid('error'true); ?>
<!doctype html>
<meta charset="UTF-8">
<meta name="robots" content="noindex">

Theme © iAndrew 2016 - Forum software by © MyBB