You can find information on how to install the BugSplatDotNetStandard NuGet package here.
After you've installed the BugSplatDotNetStandard package, add a using statement for the BugSplatDotNetStandard namespace.
Create a new instance of BugSplat providing it your application's name, version and the corresponding BugSplat database. It's best to do this at the entry point of your application:
var bugSplat = new BugSplat(database, appName, appVersion);
Add a new listener to your application's UnhandledException event. In the event listener, add a call to BugSplat's Post method, making sure to pass in the exception that was unhandled. It is recommended that you close your application after an UnhandledException. In the following example from our MyUwpCrasher sample, we mark the exception as handled so that we can await the call to Post and shutdown the application immediately after:
You can also configure BugSplat to upload log files at crash time. You can add as many files as you'd like, but the upload size limit is 2 MB for standard customers and 10 MB for Enterprise customers:
To test the integration, throw a new Exception outside of a try catch block:
throw new Exception("BugSplat rocks!");
You can also use BugSplat to manually post errors from a catch block:
Once you've generated an error, navigate to the BugSplat Dashboard and ensure you have to correct database selected in the dropdown menu. You should see a new crash report under the 'Most Recent Crashes' section:
Click the link in the ID column to see details about the crash:
That’s it! Your application is now configured to post crash reports to BugSplat.
If you have any additional questions please reach out to our support team.