How to use the @boost/debug.CrashReporter function in @boost/debug

To help you get started, we’ve selected a few @boost/debug examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github milesj / boost / packages / core / src / Pipeline.ts View on Github external
reportCrash(error: Error) {
    const { appPath, rootPath, config, options } = this.tool;
    const { appName } = options;
    const reporter = new CrashReporter()
      .reportBinaries()
      .reportProcess()
      .reportSystem();

    reporter
      .addSection(appName)
      .add('App name', appName)
      .add('App path', appPath)
      .add('Plugin types', Object.keys(this.tool.getRegisteredPlugins()).join(', '))
      .add('Scoped package', options.scoped ? 'Yes' : 'No')
      .add('Root', rootPath)
      .add('Config name', options.configName)
      .add('Package path', rootPath.append('package.json'))
      .add('Workspaces root', options.workspaceRoot || '(Not enabled)')
      .add(
        'Extending configs',

@boost/debug

Lightweight debugging and crash reporting.

MIT
Latest version published 9 months ago

Package Health Score

61 / 100
Full package analysis