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

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and 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?

rescue Interrupt
  warn "\nAborted!"
  exit 1
This topic is locked and can not be replied to.