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
15
16
# File 'lib/byebug/commands/info.rb', line 4

def info_catch(*args)
  unless @state.context
    print "No frame selected.\n"
    return
  end
  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