@@ -78,7 +78,7 @@ def print_current_frame(frame_pos)
78
78
def print_frame ( context , frame_id , current_frame_id )
79
79
# idx + 1: one-based numbering as classic-debugger
80
80
file = context . frame_file ( frame_id )
81
- print "<frame no=\' %s\' file=\' %s\' line=\' %s\' #{ "current='true' " if frame_id == current_frame_id } />" ,
81
+ print "<frame no=\" %s\" file=\" %s\" line=\" %s\" #{ "current='true' " if frame_id == current_frame_id } />" ,
82
82
frame_id + 1 , File . expand_path ( file ) , context . frame_line ( frame_id )
83
83
end
84
84
@@ -173,9 +173,9 @@ def print_variable(name, value, kind)
173
173
value_str = handle_binary_data ( value_str )
174
174
escaped_value_str = CGI . escapeHTML ( value_str )
175
175
print ( "<variable name=\" %s\" %s kind=\" %s\" value=\" %s\" type=\" %s\" hasChildren=\" %s\" objectId=\" %#+x\" >" ,
176
- CGI . escapeHTML ( name ) , build_compact_value_attr ( value ) , kind , escaped_value_str , value . class ,
176
+ CGI . escapeHTML ( name ) , build_compact_value_attr ( value ) , kind , build_value_attr ( escaped_value_str ) , value . class ,
177
177
has_children , value . respond_to? ( :object_id ) ? value . object_id : value . id )
178
- print ( "<value><![CDATA[%s]]></value>" , escaped_value_str )
178
+ print ( "<value><![CDATA[%s]]></value>" , escaped_value_str ) if Debugger . rm_protocol_extensions
179
179
print ( '</variable>' )
180
180
end
181
181
@@ -367,6 +367,10 @@ def build_compact_value_attr(value)
367
367
compact_value_str . nil? ? '' : "compactValue=\" #{ CGI . escapeHTML ( compact_value_str ) } \" "
368
368
end
369
369
370
+ def build_value_attr ( escaped_value_str )
371
+ Debugger . rm_protocol_extensions ? '' : escaped_value_str
372
+ end
373
+
370
374
instance_methods . each do |m |
371
375
if m . to_s . index ( 'print_' ) == 0
372
376
protect m
0 commit comments