Skip to content

Commit 417d2b9

Browse files
author
Naoto Ono
authored
fix bug for "catch" command (#26)
1 parent e5c3b77 commit 417d2b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/debug/breakpoint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ def setup
209209
@tp = TracePoint.new(:raise){|tp|
210210
exc = tp.raised_exception
211211
exc.class.ancestors.each{|cls|
212-
suspend if pat === cls.name
212+
suspend if @pat === cls.name
213213
}
214214
}
215215
end

lib/debug/session.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ def break? file, line
852852

853853
def add_catch_breakpoint arg
854854
bp = CatchBreakpoint.new(arg)
855-
add_braekpoint bp
855+
add_breakpoint bp
856856
end
857857

858858
def add_check_breakpoint expr

0 commit comments

Comments
 (0)