Saving Bug Reports

saveReport

Deprecation notice: this method will be removed in the coming weeks.

You can use the saveReport method to generate a bug report and save it programmatically. The bug report will include the usual information, such as screen recording, console, and user info.

You could call this method when the user clicks a button or a link to submit a bug report or build your own custom integratinos to generate reports automatically when a specific error has happened during critical flows.

Example

window.Bugpilot.saveReport({
  source: "string", // Optional
  userProvidedDescription: "string", // Optional
});

The method takes an optional parameter with the following properties:

Reports can take a few seconds to be saved and uploaded to Bugpilot. Calling saveReport during unload or onbeforeunload will not work.

Last updated