View Single Post
04/24/14, 01:13 PM   #22
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
To clarify or add to what Joviex and I were saying... If a user has 6 addons installed, and one of them uses LibDebug...
  • User has addon A installed which includes your LibDebug.
  • User also has addons B, C, D, E, and F installed.
  • The author of addon C accidentally left in a debug statement that spams the chatlog a few times.
  • User says "hey, I think I saw a settings somewhere that lets me turn that off" and does so.
  • Addons B and E use d() to print things to the chatframe such as total amount of gold earned from selling things to a vendor or an alert when your research is complete.
  • User notices that these printouts are no longer appearing in their chat window.
  • User complains to the authors of addons B and E, thinking that something is broken. (These aren't debug statements, they're legitimate addon output for the user to see, after all. The user doesn't think about that debug setting they switched from LibDebug.)
  • Authors of addons B and E are totally confused and cannot figure out what sort of problem the user is having and why it is affecting their code. (They don't know about LibDebug, and have no idea that they have to use LibDebug.d() if some other random addon is using LibDebug.)
  Reply With Quote