I just noticed GetLastRunRuntimeError() and GetLastRunCompileError(), but unfortunately GetLastRunRuntimeError() gives only error code, is there any pre defined list of such error codes to easily identify the type of error.
Unfortunately the codes are undocumented in TFM.
But try extracting them with a call from this dusty corner https://sdkdocs.roku.com/display/sdkdoc/Component+Architecture#ComponentArchitecture-bslBrightScriptErrorCodes()asObject
Reminds me much "The Hitchhiker's Guide to the Galaxy": viewtopic.php?f=34&t=71686#p448091
Also, once the error occur, now whenever I run my code, it always show me the same error, is there a way to clear this record once the data has been captured from this function.
Regarding GetLastRunCompileError(), this function never returns anything.
RokuCo dis-courages, dis-supports and dis-recommends using these, see viewtopic.php?f=34&t=95690#p535128
I am looking to send crash logs to my server whenever roku app crashes. Is there any different approach I should follow?
... but no, there is no other way