Module: Byebug::InfoFunctions
- Defined in:
- lib/byebug/commands/info.rb
Instance Method Summary collapse
Instance Method Details
#info_catch(*args) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/byebug/commands/info.rb', line 4 def info_catch(*args) return print "No frame selected.\n" unless @state.context if Byebug.catchpoints and not Byebug.catchpoints.empty? Byebug.catchpoints.each do |exception, hits| print "#{exception}: #{exception.is_a?(Class)}\n" end else print "No exceptions set to be caught.\n" end end |