WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Paul Annekov
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic