Title: Disable error handler with constant
Last modified: November 28, 2018

---

# Disable error handler with constant

 *  [malthert](https://wordpress.org/support/users/malthert/)
 * (@malthert)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/disable-error-handler-with-constant/)
 * It would be great if the debug bar error handler could be disabled using a constant,
   so I can use my own custom error handler.
    (it works for query monitor like this
   already using: define( ‘QM_DISABLE_ERROR_HANDLER’, true );
 * File class-debug-bar-php.php => set_error_handler( would need to be wrapped in
   condition for it to work.
 * It’s a really simple but helpful change.

The topic ‘Disable error handler with constant’ is closed to new replies.

 * ![](https://ps.w.org/debug-bar/assets/icon.svg?rev=3050748)
 * [Debug Bar](https://wordpress.org/plugins/debug-bar/)
 * [Support Threads](https://wordpress.org/support/plugin/debug-bar/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-bar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-bar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-bar/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [malthert](https://wordpress.org/support/users/malthert/)
 * Last activity: [7 years, 6 months ago](https://wordpress.org/support/topic/disable-error-handler-with-constant/)
 * Status: not resolved