File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ options = OpenStruct.new(
21
21
'dispatcher_port' => -1 ,
22
22
'evaluation_timeout' => 10 ,
23
23
'rm_protocol_extensions' => false ,
24
- 'catchpoint_deleted_event' => false
24
+ 'catchpoint_deleted_event' => false ,
25
+ 'skip_value_attr' => false
25
26
)
26
27
27
28
opts = OptionParser . new do |opts |
62
63
opts . on ( "--catchpoint-deleted-event" , "Enable chatchpointDeleted event" ) do
63
64
options . catchpoint_deleted_event = true
64
65
end
66
+ opts . on ( "--skip-value-attr" , "Allow to skip value attribute in variable representation" ) do
67
+ options . skip_value_attr = true
68
+ end
65
69
opts . separator ""
66
70
opts . separator "Common options:"
67
71
opts . on_tail ( "-v" , "--version" , "Show version" ) do
@@ -122,6 +126,7 @@ Debugger.tracing = options.tracing
122
126
Debugger . evaluation_timeout = options . evaluation_timeout
123
127
Debugger . rm_protocol_extensions = options . rm_protocol_extensions
124
128
Debugger . catchpoint_deleted_event = options . catchpoint_deleted_event || options . rm_protocol_extensions
129
+ Debugger . skip_value_attr = options . skip_value_attr || options . rm_protocol_extensions
125
130
126
131
Debugger . debug_program ( options )
127
132
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ def cleanup_backtrace(backtrace)
45
45
attr_accessor :control_thread
46
46
attr_reader :interface
47
47
# protocol extensions
48
- attr_accessor :catchpoint_deleted_event
48
+ attr_accessor :catchpoint_deleted_event , :skip_value_attr
49
49
50
50
51
51
#
Original file line number Diff line number Diff line change @@ -398,7 +398,7 @@ def safe_to_string(value)
398
398
end
399
399
400
400
def build_value_attr ( escaped_value_str )
401
- Debugger . rm_protocol_extensions ? '' : "value=\" #{ escaped_value_str } \" "
401
+ Debugger . skip_value_attr ? '' : "value=\" #{ escaped_value_str } \" "
402
402
end
403
403
404
404
instance_methods . each do |m |
You can’t perform that action at this time.
0 commit comments