From 4019e38c8f4d673cb6cd8512a76e43d38427ef88 Mon Sep 17 00:00:00 2001 From: "henthe-5@student.ltu.se" <henthe-5@student.ltu.se> Date: Tue, 19 Feb 2019 09:37:47 +0100 Subject: [PATCH] bare0_1 --- examples/bare0.rs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/examples/bare0.rs b/examples/bare0.rs index 25b5ad6..1497138 100644 --- a/examples/bare0.rs +++ b/examples/bare0.rs @@ -29,7 +29,7 @@ static mut Y: u32 = 0; fn main() -> ! { // local mutabale variable (changed in safe code) let mut x = unsafe { X }; - + loop { x += 1; // <- place breakpoint here (3) unsafe { @@ -52,8 +52,9 @@ fn main() -> ! { // // In the Expressions (WATCH -vscode) view add X and Y // what do you find -// -// *** -var-create: unable to create variable object (from var-create watch_X @ "X") *** +// +// *** Watch X and Y didn't work, added watch to 'bare0::X::h2583a8be644794f3' and 'bare0::Y::hef3986a5288bec08' to be able to read the variables +// X = 962669, Y = 962668 *** // // Step through one complete iteration of the loop // and see how the (Local) Variables are updated -- GitLab