Skip to main content

CrashReporter

Index

Constructors

constructor

Properties

contents

contents: string = ''

Methods

add

  • add(label: string, ...messages: (number | PortablePath)[]): this
  • Add a label with a value, or multiple values, to the last added section.

addSection

  • addSection(title: string): this
  • Start a new section with a title.

reportBinaries

  • reportBinaries(): this
  • Report Node.js related binary versions and paths.

reportEnvVars

  • reportEnvVars(): this
  • Report all environment variables.

reportLanguages

  • reportLanguages(): this
  • Report common programming language versions and paths

reportPackageVersions

  • reportPackageVersions(patterns: string | string[], title?: string): this
  • Report npm package versions for all that match the defined pattern. Only searches in the root node modules folder and will not work with PnP.

reportProcess

  • reportProcess(): this
  • Report information about the current process.

reportStackTrace

  • reportStackTrace(error: Error): this
  • Report the stack trace for a defined Error.

reportSystem

  • reportSystem(): this
  • Report information about the platform and operating system.

write

  • write(filePath: PortablePath): this
  • Write the reported content to the defined file path.