We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This file:
fn main() { let v = vec![1,2,3]; }
compiled with rustc -g debug.rs, then debugged with rust-lldb debug. Trying to print a value as p v yields:
rustc -g debug.rs
rust-lldb debug
p v
Traceback (most recent call last): File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 19, in print_val return print_struct_val(val, internal_dict) File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 44, in print_struct_val return print_struct_val_starting_from(0, val, internal_dict) File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 105, in print_struct_val_starting_from body = separator.join([render_child(idx) for idx in range(field_start_index, num_children)]) File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 103, in render_child return this + print_val(field_val, internal_dict) File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 19, in print_val return print_struct_val(val, internal_dict) File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 44, in print_struct_val return print_struct_val_starting_from(0, val, internal_dict) File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 105, in print_struct_val_starting_from body = separator.join([render_child(idx) for idx in range(field_start_index, num_children)]) File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 103, in render_child return this + print_val(field_val, internal_dict) TypeError: cannot concatenate 'str' and 'NoneType' objects Traceback (most recent call last): File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 19, in print_val return print_struct_val(val, internal_dict) File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 44, in print_struct_val return print_struct_val_starting_from(0, val, internal_dict) File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 105, in print_struct_val_starting_from body = separator.join([render_child(idx) for idx in range(field_start_index, num_children)]) File "/rust/x86_64-apple-darwin/stage2/lib/rustlib/etc/lldb_rust_formatters.py", line 103, in render_child return this + print_val(field_val, internal_dict) TypeError: cannot concatenate 'str' and 'NoneType' objects
$ lldb --version lldb-320.4.152 $ rustc --version rustc 1.0.0-dev (2b01a37ec 2015-02-21) (built 2015-02-21)
The text was updated successfully, but these errors were encountered:
cc @michaelwoerister
Sorry, something went wrong.
Interesting. I thought we had a test case for simple vectors. Anyway, I'm on it.
Auto merge of #23307 - michaelwoerister:lldb-vec-pp-bug, r=alexcrichton
ee76963
Fixes #22656. Also adds a nice pretty printer for `Vec`.
Rollup merge of rust-lang#23307 - michaelwoerister:lldb-vec-pp-bug, r…
7d2ee7a
…=alexcrichton Fixes rust-lang#22656. Also adds a nice pretty printer for `Vec`.
michaelwoerister
Successfully merging a pull request may close this issue.
This file:
compiled with
rustc -g debug.rs
, then debugged withrust-lldb debug
. Trying to print a value asp v
yields:The text was updated successfully, but these errors were encountered: