Crash reporting toolkit ?

This forum is the place to discuss issues related to ReportPro, Xs2Ado, Vo2Ado, bBrowser and other 3rd party products
Post Reply
User avatar
baramuse
Posts: 91
Joined: Tue Nov 29, 2022 8:31 am
Location: France

Crash reporting toolkit ?

Post 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.
User avatar
Fabrice
Posts: 452
Joined: Thu Oct 08, 2015 7:47 am
Location: France

Crash reporting toolkit ?

Post 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
XSharp Development Team
fabrice(at)xsharp.eu
markus.lorenzi@dvbern.ch
Posts: 113
Joined: Mon May 02, 2016 9:10 am
Location: Schweiz

Crash reporting toolkit ?

Post 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
User avatar
baramuse
Posts: 91
Joined: Tue Nov 29, 2022 8:31 am
Location: France

Crash reporting toolkit ?

Post by baramuse »

Thanks a lot !
Got it working thanks to

Code: Select all

System:Net:ServicePointManager:SecurityProtocol := System:Net:SecurityProtocolType:Tls12
Awesome !
Post Reply