From 7349d42945082b1352e843c5e830e847d2ad7f1f Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 25 Oct 2017 19:51:58 +0200 Subject: [PATCH] cli: add --stack-trace-limit to NODE_OPTIONS I decided that it would make a lot of sense for me to set `NODE_OPTIONS=--stack-trace-limit=100` on my development machine. This code allows me to do that. :) PR-URL: https://github.com/nodejs/node/pull/16495 Reviewed-By: James M Snell Reviewed-By: Richard Lau Reviewed-By: Jeremiah Senkpiel Reviewed-By: Colin Ihrig Reviewed-By: Ryan Graham Reviewed-By: Gireesh Punathil Reviewed-By: Michael Dawson Reviewed-By: Gibson Fahnestock --- doc/api/cli.md | 1 + src/node.cc | 1 + test/parallel/test-cli-node-options.js | 20 +++++++++++++++----- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/doc/api/cli.md b/doc/api/cli.md index 161822ad7ed0f2..c9a4d0703b8303 100644 --- a/doc/api/cli.md +++ b/doc/api/cli.md @@ -471,6 +471,7 @@ Node options that are allowed are: V8 options that are allowed are: - `--abort-on-uncaught-exception` - `--max-old-space-size` +- `--stack-trace-limit` ### `NODE_PENDING_DEPRECATION=1`