Skip to content

Commit 04093b0

Browse files
committed
Dedicated cli flag to enable catchpointDeleted event
1 parent f2e1b5c commit 04093b0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

bin/rdebug-ide

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ options = OpenStruct.new(
2020
'int_handler' => true,
2121
'dispatcher_port' => -1,
2222
'evaluation_timeout' => 10,
23-
'rm_protocol_extensions' => false
23+
'rm_protocol_extensions' => false,
24+
'catchpoint_deleted_event' => false
2425
)
2526

2627
opts = OptionParser.new do |opts|
@@ -55,9 +56,12 @@ EOB
5556

5657
opts.on("--keep-frame-binding", "Keep frame bindings") {options.frame_bind = true}
5758
opts.on("--disable-int-handler", "Disables interrupt signal handler") {options.int_handler = false}
58-
opts.on("--rubymine-protocol-extensions", "Enable RubyMine-specific incompatible protocol extensions") do
59+
opts.on("--rubymine-protocol-extensions", "Enable all RubyMine-specific incompatible protocol extensions") do
5960
options.rm_protocol_extensions = true
6061
end
62+
opts.on("--catchpoint-deleted-event", "Enable chatchpointDeleted event") do
63+
options.catchpoint_deleted_event = true
64+
end
6165
opts.separator ""
6266
opts.separator "Common options:"
6367
opts.on_tail("-v", "--version", "Show version") do
@@ -117,6 +121,7 @@ Debugger.keep_frame_binding = options.frame_bind
117121
Debugger.tracing = options.tracing
118122
Debugger.evaluation_timeout = options.evaluation_timeout
119123
Debugger.rm_protocol_extensions = options.rm_protocol_extensions
124+
Debugger.catchpoint_deleted_event = options.catchpoint_deleted_event || options.rm_protocol_extensions
120125

121126
Debugger.debug_program(options)
122127

lib/ruby-debug-ide.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ def cleanup_backtrace(backtrace)
4444
attr_accessor :cli_debug, :xml_debug, :evaluation_timeout, :rm_protocol_extensions
4545
attr_accessor :control_thread
4646
attr_reader :interface
47+
# protocol extensions
48+
attr_accessor :catchpoint_deleted_event
4749

4850

4951
#

0 commit comments

Comments
 (0)