BugSplat
Crash and error reporting built for busy developers.
π Introduction
This sample demonstrates cross-platform crash reporting with BugSplat, Crashpad, and Qt. MyQtCrasher includes prebuilt versions of Crashpad for Windows, macOS (x86_64 and arm64), and Linux. Additionally, this sample demonstrates how to use the Breakpad tools dump_syms
and symupload
to create and upload .sym
files as part of your Qt build.
For more information about how to configure Crashpad in your Qt application please see the BugSplat docs.
π Steps
- Download and install Qt Creator
- Open myQtCrasher.pro
- Build > Run to run without the debugger attached
- Click the button to generate a crash report
- Log into BugSplat using our public account [email protected] and the password Flintstone
- Click the link in the ID column on the Crashes page to see detailed information similar to what you would see in your debugger
macOS
You will need to link with the correct libraries and load the correct version of crashpad_handler
at runtime depending on if your build is targeting x86_64 or arm64 (M1) macOS systems. In myQtCrasher.pro
there is an variable that you can uncomment that will allow you to build for arm64 macOS systems.
Additional Considerations
If you change the database, application and version in main.cpp
, be sure to update the QMAKE_POST_LINK
command with these new values. symbols.sh
is responsible for running dump_syms
and symupload
on macOS and Linux. symbols.bat
is responsible for running symupload
on Windows. If the values passed to symbols.sh
or symbols.bat
via the QMAKE_POST_LINK
command are wrong then you will not see file names or line numbers in your crash reports.
π· Support
If you have any additional questions, please email or support team, join us on Discord, or reach out via the chat in our web application.