WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   General Authoring Discussion (https://www.wowinterface.com/forums/forumdisplay.php?f=20)
-   -   lua function - disable show lua errors (https://www.wowinterface.com/forums/showthread.php?t=51916)

Oniya 02-16-15 09:02 PM

lua function - disable show lua errors
 
Is there any macros or function to disable Lua errors showing?
Thanks!

Phanx 02-16-15 11:53 PM

Yes, but you don't need an addon or macro to do that, just turn off the option:

Interface Options > Game tab at the top of the left column > Help > Display Lua Errors

However, just hiding the errors is not a good solution. If you're getting errors, it means something is wrong, and if you're getting a lot of errors, especially while you're in combat, it's probably hurting your FPS.

If the errors are about addons you wrote, just fix them! If they are about addons you use, update those addons, report the errors to the addon authors so they can fix them, and/or replace those addons with ones that aren't outdated and broken.

Another option would be to use a custom error display addon like Bugger or BugSack (or Swatter, if you use Auctioneer) -- that way you'll still be able to see which addons are broken, but the errors won't pop up in the middle of your screen at inconvenient times.

Oniya 02-17-15 02:46 PM

i need to have access via lua for it - that what i asked, i know it exists in interface :)
or is it possible to get state if this checkbox really checked or not?

Banknorris 02-17-15 05:06 PM

I hope you are not an addon author trying to hide your addon problems...
Untested but probably
SetCVar("scriptErrors",0)

SDPhantom 02-17-15 08:03 PM

I was looking for this and had found the answer on my own, but my desire to find it was as part of my personal development addon to let it detect and warn me if I had errors turned off. I get a lot of CombatLog error spam from the default UI while running raids and end up having to turn it off to do anything. The problem is I forget to turn it back on when trying to debug my own addons. :p

10leej 02-18-15 01:09 AM

Quote:

Originally Posted by Banknorris (Post 306575)
I hope you are not an addon author trying to hide your addon problems...
Untested but probably
SetCVar("scriptErrors",0)

Well april is coming too soon...................... Executus.

Oniya 02-18-15 02:36 AM

Quote:

Originally Posted by Banknorris (Post 306575)
I hope you are not an addon author trying to hide your addon problems...
Untested but probably
SetCVar("scriptErrors",0)

Thanks a lot! :)


All times are GMT -6. The time now is 01:51 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI