Hello! I would like to make an error counter that checks if any script throws an error. Sure, I could use pcall in all scripts, but that would be inefficient and bloated. Is there any way I could do this without using pcall?
6 Likes
Go in game and click f9, check dev logs.
1 Like
Try this.
1 Like
You can take advantage of ScriptContext’s Error event. Just increment your counter when it fires. Alternatively, if this is just for Studio, TestService’s ErrorCount has a number directly.
11 Likes
Woah, I didn’t know that existed! Thank you so much.
2 Likes
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.