Created
June 17, 2021 17:26
-
-
Save nornagon/d3d4f440a83eca642b076f28a12d8d10 to your computer and use it in GitHub Desktop.
test electron crash reporter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, crashReporter } = require('electron') | |
console.log('crashDumps:', app.getPath('crashDumps')) | |
crashReporter.start({ uploadToServer: false }) | |
app.whenReady().then(() => { | |
process.crash() | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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