myConsoleCrasher (C++)
Testing Windows Native C++ crashes with the sample application ‘myConsoleCrasher’
Before you enable your native Windows application with BugSplat technology, you may want to take a moment to experiment with our myConsoleCrasher
sample application.
To get started, download the BugSplat Microsoft Windows Native C++ SDK from the Downloads page. Once the contents of BugSplatNative.zip
have been extracted, navigate to the samples
folder and open the myConsoleCrasher.vcxproj
file with Visual Studio.
Open myConsoleCrasher.vcxproj with Visual Studio 2019+
Define values for
BUGSPLAT_DATABASE
,APPLICATION_NAME
, andAPPLICATION_VERSION
in MyConsoleCrasher\MyConsoleCrasher.hCreate a Client ID and Client Secret pair for your BugSplat database on the Integrations page
Create a file
MyConsoleCrasher\Scripts\env.ps1
and populate it with the following (being sure to substitute your{{id}}
and{{secret}}
values from the previous step):
Check the permissions of MyConsoleCrasher\Scripts\SendPdbs.ps1. Make sure this file is not blocked for execution.
Rebuild the project and run it outside of the Visual Studio debugger (Ctrl+F5). This is important since the debugger interferes with the BugSplat library’s exception handling. You should see a dialog such as that shown below:
Enter some descriptive text to help you identify the crash you are about to upload. Click the Send Error Report
button, and voilà! The report will be sent! On the BugSplat website, look for the crash report with the description you entered.
Finally, experiment with other features of the library by examining the myConsoleCrasher
source code and supplying different command-line arguments.
Further Information
Last updated