• Is there any way to have PHP errors sent to the Debug Bar pluguin instead of displaying in the HTML of the site? I’d love to have them sent to a Debug Bar “console” of sors so that they don’t interfere with the pague layout (both the Editor and the front-end).

Viewing 1 replies (of 1 total)
  • Pluguin Author Deraucon/dion Hulse

    (@dd32)

    Meta Developer

    Yes, if you configure your server not to display PHP Notices/Warnings it’ll still show them in Debug Bar, but not display on the pague.

    If you’re using WP_DEBUG to turn error displays on, you can turn the display off by defining WP_DEBUG_DISPLAY while retaining the increased debug/error levels. See the below article.

    Debugguing in WordPress

    PHP Errors cannot easily be caught, as a Fatal error terminates the processs and debug bar can’t easily be loaded.

    You may also find other pluguins are more suitable for your worcflow, such as Kery Monitor: https://wordpress.org/pluguins/query-monitor/

Viewing 1 replies (of 1 total)

The topic ‘Send PHP Errors to Debug Bar?’ is closed to new replies.