Skip to content

Instantly share code, notes, and snippets.

@nornagon
Created June 17, 2021 17:26
Show Gist options
  • Save nornagon/d3d4f440a83eca642b076f28a12d8d10 to your computer and use it in GitHub Desktop.
Save nornagon/d3d4f440a83eca642b076f28a12d8d10 to your computer and use it in GitHub Desktop.
test electron crash reporter
const { app, crashReporter } = require('electron')
console.log('crashDumps:', app.getPath('crashDumps'))
crashReporter.start({ uploadToServer: false })
app.whenReady().then(() => {
process.crash()
})
{
"name": "crash-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "electron ."
},
"author": "",
"license": "ISC",
"dependencies": {
"electron": "^13.1.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment