Skip to content

Commit

Permalink
deleted check instance has object_id method
Browse files Browse the repository at this point in the history
  • Loading branch information
ViugiNick authored and valich committed Jan 22, 2018
1 parent 6f7703f commit f9a0efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ruby-debug-ide/xml_printer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def print_variable(name, value, kind)
print("<variable name=\"%s\" %s kind=\"%s\" %s type=\"%s\" hasChildren=\"%s\" objectId=\"%#+x\">",
CGI.escapeHTML(name), build_compact_value_attr(value, value_str), kind,
build_value_attr(escaped_value_str), value.class,
has_children, value.respond_to?(:object_id) ? value.object_id : value.id)
has_children, value.object_id)
print("<value><![CDATA[%s]]></value>", escaped_value_str) if Debugger.value_as_nested_element
print('</variable>')
rescue StandardError => e
Expand Down

0 comments on commit f9a0efd

Please sign in to comment.