Is it possible to get a full stack trace for an exception, when catching it in the AI?
Context: I recently added a top-level try/catch so that the AI can try to continue if something unexpected goes wrong. However, I would still like to be able to get the full stack trace in the log for debugging. However, getstackinfos doesn't appear to be available, and if I catch and rethrow an exception so it bubbles up to the interpreter, the original file and line number are lost.
AI exception stack trace
Moderator: OpenTTD Developers
Who is online
Users browsing this forum: No registered users and 19 guests