-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Invalid Value Object #1142
Comments
Same issue for me! |
Also seeing this on RustRover, seems rust-lang/rust#126793 changed lldb_providers.py , I'll see if I can submit an issue.. |
Because Rust have changed the implementation of class StdVecSyntheticProvider:
def __init__(self, valobj, dict):
self.valobj = valobj
self.update()
def num_children(self):
return self.length
def get_child_index(self, name):
index = name.lstrip('[').rstrip(']')
if index.isdigit():
return int(index)
else:
return -1
def get_child_at_index(self, index):
start = self.data_ptr.GetValueAsUnsigned()
address = start + index * self.element_type_size
element = self.data_ptr.CreateValueFromAddress("[%s]" % index, address, self.element_type)
return element
def update(self):
self.length = self.valobj.GetChildMemberWithName("len").GetValueAsUnsigned()
self.buf = self.valobj.GetChildMemberWithName("buf").GetChildMemberWithName("inner")
self.data_ptr = unwrap_unique_or_non_null(self.buf.GetChildMemberWithName("ptr"))
self.element_type = self.valobj.GetType().GetTemplateArgumentType(0)
self.element_type_size = self.element_type.GetByteSize()
def has_children(self):
return True Finally I realized the reason for my failure was because the lldb with version 17.x provided by codelldb cannot infer the
I guess It's can be solved by bumping lldb version to 18.x. I can't do it by myself because I don't know how to adapt this in codelldb. Oops, codelldb hasn't been updated in a long time
|
codelldb doesn't need to be updated often if it's working (lldb doesn't really update), apart from major updates like these :-) |
Any progress on this (or workarounds)? :) |
Workaround: when compiling specify |
As of v1.11, CodeLLDB will just use formatters shipped with rustc. |
OS: WSL 2 - Ubuntu 22.04
VSCode version: 1.93.1
CodeLLDB version: 1.10.1
Compiler: rustc
Debuggee: x86_64-linux-gnu
While debugging, I ran into the issue that I cannot see the values of vectors as it simply shows that
<error: invalid value object>
with the following error output message:Verbose log
The text was updated successfully, but these errors were encountered: