Is there a way to detect errors or warning from any script while my game is running?

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want to detect any errors or warnings that occur during runtime of the game.

  2. What solutions have you thought of so far?
    I have thought of pcall and xpcall, but I think it would be too tedious.

some details
I’m usually on the lookout for errors or warns during in runtime of the game, and I want to know when this happens through a displace or a bot that sends me reports. However I have no knowledge of how to implement this, and I feel that there is something easier than using pcall and xpcall all the time.

1 Like

Yea, you can actually use the built in console, it will show you which line and which column the error appeared in. This is already built in, so don’t worry about it.

1 Like

thats not what im looking for. for instance in some games you may have seen a board or screen showing a list errors that closely resemble the console output. I want to collect the errors and then send them to a bot for processing and what not.

1 Like

Well, I don’t have ANY idea that can maybe help you then, sorry.

1 Like
game:GetService('LogService').MessageOut:Connect(function(message, messageType)
 if messageType == Enum.MessageType.MessageError then
  print("funny error:", message)
 end
end)
2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.