Debug Bar
Logging PHP errors after admin bar render (1 post)

  1. Paul Annekov
    Posted 4 years ago #


    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.


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Debug Bar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic