How to use the raven-js.debug function in raven-js

To help you get started, we’ve selected a few raven-js 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 assembl / assembl / assembl / static / js / app / index.js View on Github external
if (Ctx.getCurrentUserId()) {
    userContext.user_id = Ctx.getCurrentUserId();
    // TODO: do we want to parametrize the old behaviour?
    // var user = Ctx.getCurrentUser();
    // userContext.name = user.get('name');
    // userContext.email = user.get('preferred_email');
  }
  Raven.setUserContext(userContext);

  window.Raven = Raven;
  require('raven-js/plugins/console.js');
}
else {
  //Disables raven for development
  Raven.config(false);
  Raven.debug = true;
}

var router = new Router();
var collectionManager = new CollectionManager();
var socket = collectionManager.getConnectedSocketPromise();

window.Ctx = Ctx;

App.start();
github getsentry / sentry-react-native / lib / RavenClient.js View on Github external
constructor(dsn, options) {
    if (dsn.constructor !== String) {
      throw new Error('SentryClient: A DSN must be provided');
    }
    this._dsn = dsn;
    this.options = {
      allowSecretKey: true,
      allowDuplicates: Sentry.isNativeClientAvailable()
    };
    Object.assign(this.options, options);

    Raven.config(dsn, this.options);
    if (options.logLevel >= SentryLog.Debug) {
      Raven.debug = true;
    }
  }