Welcome Guest, Not a member yet? Register   Sign In
Debug Exception crashing the app
#5

(This post was last modified: 11-05-2021, 12:13 AM by John_Betong. Edit Reason: Forgot to mention the php.ini )

Quote:@tomasoma,
what i wish to do is to disable the Debug\Exception() thing in the development mode, but from what i've read so far it is not possible for the moment.

Try this:
// File: ./system/Debug/Exceptions.php
// around line: 81
PHP Code:
public function initialize()
    {
      // MAYBE DISABLE KINT ERROR-HANDLING  
      if(CI_DEBUG) :  
        set_exception_handler
([$this'exceptionHandler']);
        set_error_handler([$this'errorHandler']);
      # else:  
        # PHP ERROR HANDLING
        register_shutdown_function([$this'shutdownHandler']);
      endif;  
    


Edit:
I forgot to mention about my php.ini settings
Code:
error_prepend_string = "
    <pre
        style='
            background-color: RED; color: YELLOW;
            border: dotted 1px RED;
            font-weight: 700;
            width: 88%;
            margin:  0.42em auto;
            padding: 0 0.21em;
            line-height: 1.42em;
            white-space: pre-wrap;
        '
    >"
error_append_string = "</pre>"
Reply


Messages In This Thread
Debug Exception crashing the app - by tomasoma - 11-03-2021, 02:32 AM
RE: Debug Exception crashing the app - by kenjis - 11-03-2021, 07:08 PM
RE: Debug Exception crashing the app - by John_Betong - 11-05-2021, 12:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB