- Backtrace as an Electron Crash Reporting Solution
- Backtrace sponsoring free usage for open source projects.
It seems only fitting that we combine these two posts and give free access to Backtrace for members of the Electron maintainer community. Read on to find out how to submit your crashes to the Electron Backtrace instance.
Post Crashes Directly from crashReporter
If you’re an Electron user and want to use Backtrace to post your crash to Electron Maintainers, you can simply point your Electron application using crashReporter via following submitURL:
1 |
https://electron.sp.backtrace.io:6098/post?format=minidump&token=12c3a29e4b85c3eb140889875b7623bbd12bd332264efbace51a5e7a6f2b0ad2 |
1 2 3 4 5 6 7 8 |
const {crashReporter} = require('electron') crashReporter.start({ productName: 'YourName', companyName: 'YourCompany', submitURL: 'https://electron.sp.backtrace.io:6098/post?format=minidump&token=12c3a29e4b85c3eb140889875b7623bbd12bd332264efbace51a5e7a6f2b0ad2', uploadToServer: true }) |
Upload Crashes Manually
1 |
curl --data-binary @<dump_file.dmp> 'https://electron.sp.backtrace.io:6098/post?format=minidump&token=de85f61dfdb792832d2748f02ec4523c3fd240baf2d16f106851507dca288a64' |
extra
parameters, via query-string parameters when you are manually submitting. For example, if I wanted to indicate that ver
was 1.8.1, I would add &ver=1.8.1
to the URL as shown below.
1 |
curl --data-binary @<dump_file.dmp> 'https://electron.sp.backtrace.io:6098/post?format=minidump&token=de85f61dfdb792832d2748f02ec4523c3fd240baf2d16f106851507dca288a64&ver=1.8.1' |
object id
. If you have access to electron.sp.backtrace.io, you can directly navigate to the minidump by going to: https://electron.sp.backtrace.io/dashboard/electron/project/Electron/debugger/7
1 2 |
$ curl --data-binary @electron_sample.dmp 'https://electron.sp.backtrace.io:6098/post?format=minidump&token=de85f61dfdb792832d2748f02ec4523c3fd240baf2d16f106851507dca288a64&ver=1.8.1' $ {"response":"ok","object":"7"} |