0.0.1 • Published 8 years ago

ember-cli-stack-trace-limit v0.0.1

Weekly downloads
20
License
MIT
Repository
github
Last release
8 years ago

ember-cli-stack-trace-limit

An ember-cli addon to set Error.stackTraceLimit early.

Installation

ember install ember-cli-stack-trace-limit

Usage

By default, this addon sets Error.stackTraceLimit to 100 in development and test environments. This number can be overridden with this stackTraceLimit configuration property. It can be enabled in other environments by configuring stackTraceLimit for those environments.

Configuration

ENV.stackTraceLimit

You can configure the limit in your project's config/environment.js file. This is an easy way to change settings for a given environment. For example:

// config/environment.js
module.exports = function(environment) {
  var ENV = { };

  if (environment === 'test') {
    ENV.stackTraceLimit = 30;
  }
  
  if (environment === 'development') {
    ENV.stackTraceLimit = 120;
  }

  return ENV;
};