Skip to content

Commit 81970bd

Browse files
committed
[doc] add crash_report_url in manifest
1 parent 3bc112e commit 81970bd

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/References/Manifest Format.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,19 @@ It will be useful if you want to distribute the app with some custom chromium ar
115115

116116
See [Command Line Options](Command Line Options.md) for more information.
117117

118+
### crash_report_url
119+
120+
* `{String}` URL of the crash report server
121+
122+
Once the app crashed, the crash dump file and information about the runtime environment will be sent to the crash server. It's sent in the same way as in Chromium browser: a HTTP POST request with `multipart/form-data` as the content type. In theory, any breakpad/crashpad server could handle the request, since breakpad/crashpad work in the same way in NW as they do in Chromium. See [a very simple server](https://github.com/nwjs/nw.js/blob/nw21/test/sanity/crash-dump-report/crash_server.py) used in our test case, or [simple-breakpad-server](https://github.com/acrisci/simple-breakpad-server).
123+
124+
The request contains the following field at least:
125+
126+
* `prod` - the `name` field in the manifest of your application
127+
* `ver` - the `version` field in the manifest of your application
128+
* `upload_file_minidump` - the binary contents of the minidump file
129+
* `switch-n` - the command line switches of the crashing process. There are multiple fields for each switch where `n` is a number starting from 1.
130+
118131
### js-flags
119132

120133
* `{String}` Specify the flags passed to JS engine (v8). e.g. turn on Harmony Proxies and Collections feature:

0 commit comments

Comments
 (0)