Skip to content

Commit f2e1b5c

Browse files
committed
Only XmlPrinter should know about protocol extensions
1 parent a395247 commit f2e1b5c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/ruby-debug-ide/commands/catchpoint.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@ def execute
2525
errmsg "Off expected. Got %s\n", @match[2]
2626
elsif Debugger.catchpoints.member?(excn)
2727
Debugger.catchpoints.delete(excn)
28-
if Debugger.rm_protocol_extensions
29-
print_catchpoint_deleted(excn)
30-
else
31-
print_catchpoint_set(excn)
32-
end
28+
print_catchpoint_deleted(excn)
3329
else
3430
errmsg "Catch for exception %s not found.\n", excn
3531
end

lib/ruby-debug-ide/xml_printer.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,11 @@ def print_catchpoint_set(exception_class_name)
217217
end
218218

219219
def print_catchpoint_deleted(exception_class_name)
220-
print "<catchpointDeleted exception=\"%s\"/>", exception_class_name
220+
if Debugger.rm_protocol_extensions
221+
print "<catchpointDeleted exception=\"%s\"/>", exception_class_name
222+
else
223+
print_catchpoint_set(exception_class_name)
224+
end
221225
end
222226

223227
def print_expressions(exps)

0 commit comments

Comments
 (0)