We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 649dccc commit 1c0324bCopy full SHA for 1c0324b
lib/ruby-debug-ide/xml_printer.rb
@@ -130,8 +130,12 @@ def print_hash(hash)
130
131
def print_string(string)
132
print_element("variables") do
133
- print_variable('bytes', string.bytes.to_a, 'instance') if string.respond_to?('bytes')
134
- print_variable('encoding', string.encoding, 'instance') if string.respond_to?('encoding')
+ if string.respond_to?('bytes')
+ bytes = string.bytes.to_a
135
+ InspectCommand.reference_result(bytes)
136
+ print_variable('bytes', bytes, 'instance')
137
+ end
138
+ print_variable('encoding', string.encoding, 'instance') if string.respond_to?('encoding')
139
end
140
141
0 commit comments