Rust debug doesn't show enums

Answered

I have an Enum of a Barnes-Hut Tree:

 

#[derive(Debug)]
pub enum BHTree<T>
where
T: Num,
{
Empty {
boundary: Rectangle2D<T>,
},

Occupied {
boundary: Rectangle2D<T>,
point_mass: PointMass<T>,
},

Root {
boundary: Rectangle2D<T>,
avg_point_mass: Option<PointMass<T>>,
nw: Option<Box<BHTree<T>>>,
ne: Option<Box<BHTree<T>>>,
se: Option<Box<BHTree<T>>>,
sw: Option<Box<BHTree<T>>>,
},
}

 

When debugging it only shows this:

And there is nothing below there. Why is this?

When using VSCode with the Native Debugger everything is visible.

0
1 comment

Hello!

Do you use our bundled LLDB? It doesn’t know about Rust yet - https://github.com/rust-lang/rust/issues/58492. Meta issue about Rust and lldb: https://github.com/intellij-rust/intellij-rust/issues/4548.

0

Please sign in to leave a comment.