Log exceptions in your Delphi app in the cloud with StellarDS.io
Summary
You will learn how you can do this with just 2 units to add to your application, no additional components to install and the free tier of our StellarDS.io data in the cloud service (or the paid tier when you also want to log screenshots at the time of exception). To generally handle exceptions in a Delphi applications, we can do this by adding an event handler for Application.OnException. These are the only few steps needed to setup your StellarDS.io account: • Sign-in or sign-up for your (free) StellarDS.io account • Go under Tables and create the new table named "Exceptions" • Manage the table to add fields (case is important): -Exception : NVarChar(2048) -SysInfo : NVarChar(20248) -Timestamp : DateTime -Screenshot : Blob (optional for paid StellarDS.io accounts) (the id field is auto-created and always available automatically) • Create an access token (with admin rights) under Application, Access Tokens and copy this token to the clipboard and save it for use in your Delphi code. We added a property FreeTier: boolean to this class that will control whether the exception logger will take advantage of the availability of blob fields in a paid StellarDS.io subscription or not (and thus you can use the free tier). If you use a paid subscription of StellarDS.io, you can also submit the application screenshot to the blob field in the Exceptions table.