Skip to content

Add --suppress-backtrace=num option to limit the backtrace length - #3047

Merged
mame merged 1 commit into
ruby:masterfrom
mame:suppress-backtrace
May 14, 2020
Merged

Add --suppress-backtrace=num option to limit the backtrace length#3047
mame merged 1 commit into
ruby:masterfrom
mame:suppress-backtrace

Conversation

@mame

@mame mame commented Apr 21, 2020

Copy link
Copy Markdown
Member
$ ./miniruby --suppress-backtrace=5 -e 'def f1 = raise
def f2 = f1
def f3 = f2
def f4 = f3
def f5 = f4
def f6 = f5
def f7 = f6
def f8 = f7
def f9 = f8
f9
'
-e:1:in `f1': unhandled exception
	from -e:2:in `f2'
	from -e:3:in `f3'
	from -e:4:in `f4'
	from -e:5:in `f5'
	from -e:6:in `f6'
	 ... 5 levels...

[Feature #8661]

@mame
mame requested a review from nobu April 21, 2020 09:37
@mame

mame commented Apr 21, 2020

Copy link
Copy Markdown
Member Author

@mame
mame force-pushed the suppress-backtrace branch from c7fbe7f to cd5f203 Compare May 14, 2020 15:54
```
$ ./miniruby --backtrace-limit=5 -e 'def f1 = raise
def f2 = f1
def f3 = f2
def f4 = f3
def f5 = f4
def f6 = f5
def f7 = f6
def f8 = f7
def f9 = f8
f9
'
-e:1:in `f1': unhandled exception
	from -e:2:in `f2'
	from -e:3:in `f3'
	from -e:4:in `f4'
	from -e:5:in `f5'
	from -e:6:in `f6'
	 ... 5 levels...
```

[Feature ruby#8661]
@mame
mame force-pushed the suppress-backtrace branch from cd5f203 to e124669 Compare May 14, 2020 16:08
@mame
mame merged commit 39365b4 into ruby:master May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant