Page 1 of 1
Crash reporting toolkit ?
Posted: Tue May 30, 2023 9:02 am
by baramuse
Hi all,
I was wondering if any were using any kind of crash reporting framework, like Raygun , or Sentry..
I just tried Sentry, but although code works, as it's a .net package, it does not seem to catch and report des exceptions out of the box.
As we're in the phase of bug hunting our ported software, that'd be good to have a tool to report, triage, group the crashes !
Best regards.
Crash reporting toolkit ?
Posted: Tue May 30, 2023 10:01 am
by Fabrice
Hi Basile,
I don't know about Sentry, and maybe this not exactly what you are looking for but I'm more and more using Serilog in order to catch events (Exceptions or not) in my apps.
You can set the format, and the destination; it can be a file, a rolling-file, emails, different kind of databases, ....
Sure, in order to catch Exceptions you will need at least a Try/Catch
HTH,
Fab
Crash reporting toolkit ?
Posted: Tue May 30, 2023 11:39 am
by markus.lorenzi@dvbern.ch
Hi Basile
we use Sentry with success. All exceptions are logged to our central server with the full details/callstack.
Its just a few lines of code which needs to be added to the Start() Function:
[STAThread];
FUNCTION Start() AS INT
LOCAL oXApp AS XApp
LOCAL sentryOptions AS SentryOptions
sentryOptions := SentryOptions{}
sentryOptions:Dsn := "
https://xxxxxxxxxxxxxx@host"
sentryOptions:AttachStacktrace := TRUE
System:Net:ServicePointManager:SecurityProtocol := System:Net:SecurityProtocolType:Tls12
//DEBUG IS a preprocessor flag (see debug properties - Build - preprocessor) --> decide about sentry level at build time
#ifdef DEBUG
sentryOptions:@@Debug := TRUE
sentryOptions:DiagnosticLevel := SentryLevel.Debug
sentryOptions:DiagnosticLogger := TraceDiagnosticLogger{SentryLevel.Debug}
#endif
BEGIN USING VAR sentry := SentrySdk:Init(sentryOptions)
TRY
oXApp := XApp{}
oXApp:Start()
CATCH oException AS Exception
SentrySdk:CaptureException(oException)
ErrorDialog(oException)
END TRY
END USING
RETURN 0
Crash reporting toolkit ?
Posted: Tue May 30, 2023 1:51 pm
by baramuse
Thanks a lot !
Got it working thanks to
Code: Select all
System:Net:ServicePointManager:SecurityProtocol := System:Net:SecurityProtocolType:Tls12
Awesome !