mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Mention how to test
This commit is contained in:
@@ -54,7 +54,7 @@ You can pass different options to `crashReporter.start` when calling from differ
|
||||
**Note** Child processes created via the `child_process` module will not have access to the Electron modules.
|
||||
Therefore, to collect crash reports from them, use `process.crashReporter.start` instead. Pass the same options as above
|
||||
along with an additional one called `crashesDirectory` that should point to a directory to store the crash
|
||||
reports temporarily.
|
||||
reports temporarily. You can test this out by calling `process.crash()` to crash the child process.
|
||||
|
||||
**Note:** To collect crash reports from child process in Windows, you need to add this extra code as well.
|
||||
This will start the process that will monitor and send the crash reports. Replace `submitURL`, `productName` and `tmpPath`
|
||||
|
||||
Reference in New Issue
Block a user