Skip to content

Commit a395247

Browse files
committed
catchpointDeleted event added
1 parent 8df01d2 commit a395247

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.4.34](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.33...v0.4.34)
2+
3+
* catchpointDeleted event added (under rm-protocol-extensions flag)
4+
15
## [0.4.33](https://github.com/ruby-debug/ruby-debug-ide/compare/v0.4.32...v0.4.33)
26

37
* Fixed problem with inspecting Jbuilder

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

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,11 @@ def execute
2525
errmsg "Off expected. Got %s\n", @match[2]
2626
elsif Debugger.catchpoints.member?(excn)
2727
Debugger.catchpoints.delete(excn)
28-
print_catchpoint_set(excn)
29-
#print "Catch for exception %s removed.\n", excn
28+
if Debugger.rm_protocol_extensions
29+
print_catchpoint_deleted(excn)
30+
else
31+
print_catchpoint_set(excn)
32+
end
3033
else
3134
errmsg "Catch for exception %s not found.\n", excn
3235
end
@@ -40,7 +43,9 @@ def help_command
4043
def help(cmd)
4144
%{
4245
cat[ch]\t\t\tshow catchpoint
46+
cat[ch] off \tremove all catch points
4347
cat[ch] <an Exception>\tset catchpoint to an exception
48+
cat[ch] <an Exception> off \tremove catchpoint for an exception
4449
}
4550
end
4651
end

lib/ruby-debug-ide/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Debugger
2-
IDE_VERSION='0.4.33'
2+
IDE_VERSION='0.4.34'
33
end

lib/ruby-debug-ide/xml_printer.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ def print_catchpoint_set(exception_class_name)
216216
print "<catchpointSet exception=\"%s\"/>", exception_class_name
217217
end
218218

219+
def print_catchpoint_deleted(exception_class_name)
220+
print "<catchpointDeleted exception=\"%s\"/>", exception_class_name
221+
end
222+
219223
def print_expressions(exps)
220224
print_element "expressions" do
221225
exps.each_with_index do |(exp, value), idx|

0 commit comments

Comments
 (0)