A possible way to debug without the old good script log
Posted: 22 Oct 2016, 20:38
I don't know if anybody knew this already, but I found how to get an error string that tells you what's wrong with your code.
I should warn you, though: I'm afraid it hangs the game with any code that produces no errors (the application still runs, but the duel doesn't progress). For this reason I think it's good only when you need to test a single function in search for the correct arguments.
Feel free to add any additional information you find.
- Code: Select all
local status, err = pcall(function()
-- Write here the code that you want to debug
end)
I should warn you, though: I'm afraid it hangs the game with any code that produces no errors (the application still runs, but the duel doesn't progress). For this reason I think it's good only when you need to test a single function in search for the correct arguments.
Feel free to add any additional information you find.