Forum: Ruby some questions on ruby - is any variable in ruby can control trace back limit?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7b3d60a2de005a458e45f2722345f3c6?d=identicon&s=25 Previn Lin (previn)
on 2013-10-24 10:56
When click CTRL-C when ruby script running, it always give trace back.

Is there way to make no trace back?

I know setting below can solve this issue, but I want to know whether
any variable in ruby(maybe somthing like backtrace_display_limit = 0)
can get same function?

begin
  My::App.do(things)
rescue Interrupt
  warn "\nAborted!"
  exit 1
end
This topic is locked and can not be replied to.