Global variables not accessible with Visual Studio debugger

2022-04-21 Thread pdgr via Digitalmars-d-debugger
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

Re: Global variables not accessible with Visual Studio debugger

2022-04-24 Thread pdgr via Digitalmars-d-debugger
On Sunday, 24 April 2022 at 06:11:03 UTC, Rainer Schuetze wrote: On 23/04/2022 15:41, pdgr wrote: On Saturday, 23 April 2022 at 13:29:16 UTC, pdgr wrote: Thanks for the suggestions, the extern(C) thing doesn't work.. but in the disassembly I can see the mangled name and I can inspect the

Re: Global variables not accessible with Visual Studio debugger

2022-04-23 Thread pdgr via Digitalmars-d-debugger
On Saturday, 23 April 2022 at 13:29:16 UTC, pdgr wrote: Thanks for the suggestions, the extern(C) thing doesn't work.. but in the disassembly I can see the mangled name and I can inspect the value in the watch window using that mangled name. Kinda annoying but it works. Scratch that.. it

Re: Global variables not accessible with Visual Studio debugger

2022-04-23 Thread pdgr via Digitalmars-d-debugger
Thanks for the suggestions, the extern(C) thing doesn't work.. but in the disassembly I can see the mangled name and I can inspect the value in the watch window using that mangled name. Kinda annoying but it works.