[英]How to view the contents of a vector of tuples when debugging in LLDB?
此問題已在最新版本的CodeLLDB v1.7.0
中得到解決
rust: 1.60.0 (7737e0b5c 2022-04-04)
vscode: v1.67.0
\
使用的代碼
use std::vec;
fn main() {
let my_vec_of_tuples: Vec<(u64, u64)> = vec![(1, 2), (3, 4)];
println!("you guessed : {:?}", my_vec_of_tuples);
}
代碼lldb調試視圖
my_vec_of_tuples: (2) vec![(1, 2), (3, 4)]
my_vec_of_tuples[0]: (1, 2)
知道不建議將圖像作為答案的一部分發布,但在這里更合適並且需要回答圖像。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.