Global variables not accessible with Visual Studio debugger
pdgr
pdgr at foo.bar
Thu Apr 21 19:37:22 UTC 2022
Hello,
I have a program that I want to debug on Windows 10 using Visual
Studio 2022. I'm debugging the built .exe directly (not using
VisualD or anything).
The program is compiled with dmd ver v2.099.0 using the following
flags:
dmd main.d -debug -g -gf -gs -m64
In Visual Studio when I type the name of my global variable in
the watch window it can't find it.. any way to solve this? I
found some old thread that suggested using
{module-name}.{global-var-name} but that doesn't work either.
Thanks in advance.
More information about the Digitalmars-d-debugger
mailing list