Forums

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

  1. Paul Annekov
    Member
    Posted 10 months 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/

Reply

You must log in to post.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 10 months ago by Paul Annekov
  • This topic is not resolved
  • WordPress version: 3.4.1