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 20a3a3c commit cfce332Copy full SHA for cfce332
lib/ruby-debug-ide/xml_printer.rb
@@ -354,12 +354,16 @@ def compact_array_str(value)
354
compact[0..compact.size-2] + ", ...]"
355
end
356
compact
357
+ rescue
358
+ nil
359
360
361
def compact_hash_str(value)
362
slice = value.sort_by { |k, _| k.to_s }[0..5]
363
compact = slice.map { |kv| "#{kv[0]}: #{handle_binary_data(kv[1])}" }.join(", ")
364
"{" + compact + (slice.size != value.size ? ", ..." : "") + "}"
365
366
367
368
369
def build_compact_value_attr(value)
0 commit comments