Note
DEPRECATED see the new sample here.
MyUnrealCrasher is a C++ project based on the Unreal Engine programming quick start tutorial that demonstrates the power of BugSplat crash reporting. A prebuilt version of this project is available here. The fastest way to evaluate BugSplat is to download and run the prebuilt version of this project. For more information about how to integrate BugSplat into your game, please see the documentation on our website.
The following steps will configure MyUnrealCrasher to post crash reports to BugSplat. When you're prompted to log into BugSplat use the username Fred and password Flintstone:
- Download the BugSplatUnreal SDK
- Open
MyUnrealCrasher.uproject
- File > Package Project > Packaging Settings. Enable
Include Crash Reporter
andInclude Debug Files
- Package the project and make note of the output folder
- Copy the files from the
...\BugSplatUnreal\BugSplat\bin
folder to...\WindowsNoEditor\Engine\Binaries\Win64
. Confirm that you want to overwrite the existing files - Run
SendPdbs.bat
to upload symbol files to BugSplat. This will allow BugSplat to resolve function names and line numbers in the crash report - Run
MyUnrealCrasher.exe
. It should crash after 100 ticks - Visit the All Crashes page on BugSplat and click the Crash Id of the crash you just posted to view detailed information including the stack trace and additional files sent with your crash report
- Replace the
database
value inbugsplat.config
and theusername
,password
anddatabase
valuesSendPdbs.bat
to configure BugSplat with your database
That's it, you're well on your way to crushing your bugs and improving the stability of your game!
BugSplat's CrashReportClient can also be configured via command line arguments in lieu of the bugsplat.config file. You can add additional command line arguments by modifying WindowsPlatformCrashContext.cpp.
The arguments BugSplat's CrashReportClient supports are:
// Required
-Database=<your database name>
-AppName=<your application name>
-AppVersion=<your application version>
// Optional
-Unattended
-User=<name of your user>
-Email=<email of your user>
-Description=<description of why crash occurred (use \r\n for newline)>
-Key=<additional application identifier>
-Silent=true
The unattended
and silent
arguments will supress the BugSplat dialog but still send the crash report. The user
, email
and description
arguments will be loaded in the crash dialog as defaults, but can be overwritted by an end user. The key
argument can be used to display a specific support response to your user such as a translated version of your support response based on your user's language settings.
The Windows Fall Creator's Update introduced a defect that affects the creation of crash reports on some Windows 10 systems. As a workaround, the prebuilt sample of this project includes older versions of dbgeng.dll, dbghelp.dll and dbgcore.dll in the same directory as MyUnrealCrasher.exe. This allows the Unreal Engine to load the working versions of these dlls instead of the broken versions in the System32 directory. More information on this issue can be found here and here.