Support » Fixing WordPress » Adding Debugging Information But Don’t Want to Reinvent The Wheel

  • I would like to be able to do some logging of debug information during code execution. Something like this:

    $debug_array[] = array("line"=>__LINE__,"file"=>__FILE__,$debug_message);

    These little additions to $debug_array could be sprinkled throughout code, and $debug_message can pretty much contain any information you want.

    Since none of this is echoed, it should be pretty easy to add a plugin to turn display on/off or filter by file or line number.

    I can’t find anything that already does this.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Adding Debugging Information But Don’t Want to Reinvent The Wheel’ is closed to new replies.