Ad Widget

Collapse

PATCH: easier debugging with tagged queries for MySQL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • poison
    Junior Member
    • Oct 2010
    • 2

    #1

    PATCH: easier debugging with tagged queries for MySQL

    Hi all,

    This is a small technique that we use at Netlog: tagged queries.
    Instead of just executing your queries, we use the debug_backtrace function to detect on which file:filenumber / functionname the query was called. This makes it more easier to map queries to functions.

    Although this adds some overhead to debugging, I personally think it's usefull. Maybe there could be a feature wrapped around it that users can enable/disable. I also made it available only for MySQL since I'm sure that it works there.

    Please let me know your thoughts.

    Kind regards,
    Nicolas Van Eenaeme
    Attached Files
    Last edited by poison; 18-10-2010, 01:16. Reason: Now with proper patch file
Working...