Debugging possibilities?
1 Attachment(s)
Hey all, I'm getting error in BugSack (attached) but the addon I'm making doesn't do anything related with Unit or Player frames, kinda lost on how to debug this, are there any others ways of debugging in WoW?
|
Are there any other addons you have that might ?
Depending on how many addons you have active you could either load them one at a time to see if the error triggers to identify which addons might be the cause or you could do it in blocks until you narrow it down to a few and then repeat using the one at a time pattern. Then its the case of testing that potential faulty addon to see if it repeatedly makes the addon happen when it is the only addon loaded, but not with no addons loaded. You can then pass the information on to the developer of the addon for them to look into. However, unless an addon has literally recreated a PlayerName object it shouldn't have broken Blizzards one. Lua Code:
|
Sort it out.
So, basically in the beginning of my addon I had: PlayerName = UnitName("PLAYER"):lower() Renamed the variable name and error stopped, so I guess that PlayerName is a Blizzard global variable or something :) PS: Thanks for the reply |
There are 2 ways to avoid this kind of problems in the future.
Both appraoaches allow you to minimize risk given variable exists somewhere else. |
Quote:
|
To follow on from Vampyr's comment.
If you place something like .. local addonName, addonData = ... at the top of each lua file you will have access to data you assign to the data table in all the files you have that in. Handy if you want your files separate but able to access the same set of data. |
All times are GMT -6. The time now is 12:12 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI