Variable scoping sometimes inconsistent when debugging #112798
Labels
A-debuginfo
Area: Debugging information in compiled programs (DWARF, PDB, etc.)
C-bug
Category: This is a bug.
O-windows-msvc
Toolchain: MSVC, Operating system: Windows
I tried this code:
I expected to see this happen:
When setting a breakpoint on the line 2, no variables should be in scope. Then stepping forward one line shows just
a
in scope, etc.Instead, this happened:
Both
a
andb
were in scope but "unavailable".c
was correctly not in scope until theprintln!()
.Meta
rustc --version --verbose
:This may be a Windows specific debugging issue.
The text was updated successfully, but these errors were encountered: