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 ?
Crash reporting toolkit ?
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
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
XSharp Development Team
fabrice(at)xsharp.eu
fabrice(at)xsharp.eu
-
- Posts: 113
- Joined: Mon May 02, 2016 9:10 am
- Location: Schweiz
Crash reporting toolkit ?
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
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 ?
Thanks a lot !
Got it working thanks to
Awesome !
Got it working thanks to
Code: Select all
System:Net:ServicePointManager:SecurityProtocol := System:Net:SecurityProtocolType:Tls12