Recommended Posts

About a month ago I finally decided to look into wrapping PHP error reporting, to display better errors, and this is the result. PHP Error gives you prettier output, making it easier to 'get' an error in less time. This includes a fully syntax highlighted stack trace, code snippets, improved error messages, and it replaces the output so they aren't hidden behind any HTML or off screen.

What is really special is that it also works with ajax too. When an error strikes, your JS callback is put on hold, and the stack trace is displayed within the page. This allows you to fit the error, and then hit retry, without a page refresh. This feature requires no changes to your JS code, browser extensions, or anything like that. It just works out of the box.

It's also built with deployment in mind, or more how to avoid deploying it. It's simple to integrate (just two lines of code), so you don't need to tie your project to it. You can also run via php.ini, allowing you to keep it entirely out of your projects. Instructions on how to do this are provided on it's GitHub repository.

It can also be globally disabled through php.ini, in case you do accidentally deploy to production, and will only run if 'display_errors' is on anyway.

I've found this very useful on my own sites, especially when I hit an error which isn't related to what I'm working on. I get some insight when it's reported, allowing me to find and fix it slightly sooner.

I others find it as useful as I have.

This topic is now closed to further replies.
  • Posts

    • https://www.windowsdigitals.com/how-to-remove-items-from-right-click-menu-in-windows-11/
    • Ironically, I do have audio engineering experience, but still find the different flavors of VB-Audio's VoiceMeeter (and more advanced options like Banana and Potato) to be a little unintuitive. Yes, I can figure them out, but despite having a UI that looks like an audio mixer, they don't exactly follow typical audio mixing conventions, so it takes a little time to figure out how the software works. Still, I feel like for what you are asking for, VoiceMeeter is a good solution. If you're interested, I could probably create a quick how-to video.
    • If it was not for AI push, you have a point but as I already use notepad++ and I really don’t see the need for all the extras in a damn NOTEPAD… I also disagree real notepad with pen does not offer spell check, so why NOTEPAD app should? you already have free Word online.. if this is what you need.
    • How is it "one of the best file managers in Windows"? It is slow as hell and crashes like it's the offspring of Windows Me
    • Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked] "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}"="Share" [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked] "{e2bf9676-5f8f-435c-97eb-11607a5bedf7}"="Share" [-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\ModernSharing] Remove that Share text.
  • Recent Achievements

    • Rookie
      Snake Doc went up a rank
      Rookie
    • First Post
      nobody9 earned a badge
      First Post
    • One Month Later
      Ricky Chan earned a badge
      One Month Later
    • First Post
      leoniDAM earned a badge
      First Post
    • Reacting Well
      Ian_ earned a badge
      Reacting Well
  • Popular Contributors

    1. 1
      +primortal
      497
    2. 2
      Michael Scrip
      205
    3. 3
      ATLien_0
      201
    4. 4
      Xenon
      138
    5. 5
      +FloatingFatMan
      117
  • Tell a friend

    Love Neowin? Tell a friend!