No/missing debug information for const variables. #20259
Labels
bug
Observed behavior contradicts documented or intended behavior
debug-info
Debug information of binary generated by Zig is not as expected.
Milestone
Zig Version
0.13.0
Steps to Reproduce and Observed Behavior
I'm on Windows 11 Home.
Please see attached image - this is using the latest (as of today) VS Code, All extensions up to date and using corresponding ZLS version as far as I can tell.
Expected Behavior
In this case I expected
helloconst
to show up under Locals or at least that I can inspect it under Watch. In this case it is of course a trivial value but as we all know consts can be significantly more complex.I also expected
lolconst
to resolve OK under Watch.Even when consts are just a little bit complex, like in the case below, it can be quite useful when debuugging to immediately be able to check that, say,
max_patch_int
is the value you expect it to be.Related: #20258.
Related: #15095
The text was updated successfully, but these errors were encountered: