Title: [Plugin: Debug Bar] Logging PHP errors after admin bar render
Last modified: August 20, 2016

---

# [Plugin: Debug Bar] Logging PHP errors after admin bar render

 *  [Paul Annekov](https://wordpress.org/support/users/thesteelrat/)
 * (@thesteelrat)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-debug-bar-logging-php-errors-after-admin-bar-render/)
 * Hi.
 * Debug Bar is great plugin, but it has one big problem – it doesn’t display errors,
   that appeared after Admin Bar (and Debug Bar accordingly) render.
    So after Admin
   Bar is rendered – Debug Bar begins to render:
 *     ```
       debug-bar.php, line 34
       add_action( 'wp_after_admin_bar_render',    array( &$this, 'render' ) );
       ```
   
 * And so after that the main content part begins to render (in my case – plugin’s
   options page). If errors will occur during render – they won’t be logged, because
   Debug Bar is already rendered.
 * **What I propose**?
    Render `Debug` button and Debug Bar contents part separately.
   We render Debug Button in Admin Bar, and contents block in footer. Using JS we
   can just show this blog on button click. Using this way we can log most of errors,
   not only errors before Admin Bar render.
 * [http://wordpress.org/extend/plugins/debug-bar/](http://wordpress.org/extend/plugins/debug-bar/)

The topic ‘[Plugin: Debug Bar] Logging PHP errors after admin bar render’ 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/)

## Tags

 * [errors](https://wordpress.org/support/topic-tag/errors/)
 * [log](https://wordpress.org/support/topic-tag/log/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 0 replies
 * 1 participant
 * Last reply from: [Paul Annekov](https://wordpress.org/support/users/thesteelrat/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-debug-bar-logging-php-errors-after-admin-bar-render/)
 * Status: not resolved