Enabling JavaScript call stacks in crash reports from unresponsive pages can provide valuable insights into the state of your application at the time of a renderer crash, helping with debugging and improving stability. This feature is currently available in Chrome 125 and later behind a flag.
-
Open your browser and navigate to the experimental features page:
- For Edge, Chrome, enter
edge://flags
orchrome://flags
in the address bar.
- For Edge, Chrome, enter
-
Search for and enable the following flag:
Experimental Web Platform features
-
Restart the browser for the changes to take effect.
Alternatively, You may enable the feature using one of the following the command line flags:
--enable-features=DocumentPolicyIncludeJSCallStacksInCrashReports
--enable-experimental-web-platform-features
.
To include JavaScript call stacks in crash reports, you must opt-in by setting the appropriate document policy header.
include-js-call-stacks-in-crash-reports
Add the following HTTP header to your server responses:
Document-Policy: include-js-call-stacks-in-crash-reports
If you've never use the Reporting API before, here is a guide that can help you get set up with a server that can receive reports.