ember-cli-stack-trace-limit

0.0.1 • Public • Published

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;
};

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    199
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    199

Package Sidebar

Install

npm i ember-cli-stack-trace-limit

Weekly Downloads

26

Version

0.0.1

License

MIT

Last publish

Collaborators

  • katiegengler