1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Collect crashdumb

Discussion in 'Development' started by Daniktheboss, Mar 28, 2018.

  1. Daniktheboss

    Daniktheboss Baby Zombie

    Messages:
    144
    GitHub:
    daniktheboss
    Hey, i want to collect my crash error and send to my api. Is there like an event or somthing
     
  2. Daniktheboss

    Daniktheboss Baby Zombie

    Messages:
    144
    GitHub:
    daniktheboss
    I am aware theres
    but im not sure if that will show php errors
     
  3. Daniktheboss

    Daniktheboss Baby Zombie

    Messages:
    144
    GitHub:
    daniktheboss
    Ok did some googling, will this work? Someone help out
    PHP:
    set_exception_handler('my_exception_handler');
    function 
    my_exception_handler($e) {
        
    // do some erorr handling here, such as logging, emailing errors
        // to the webmaster, showing the user an error page etc
    }
     
  4. TheDiamondYT

    TheDiamondYT Zombie

    Messages:
    298
    GitHub:
    TheDiamondYT1
    Try actually testing it and using var_dump to print the data and see what there is.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.