An ember-cli addon to set Error.stackTraceLimit
early.
ember install ember-cli-stack-trace-limit
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.
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;
};