D Debug101

Debug'n via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Jul 28 18:04:15 PDT 2017


BLUF:
How can I set up a D debugger?

Background:
So, I've been trying to get a D debugger set up and I've been 
having a pretty difficult time doing so. Hoping someone can point 
me towards the right direction. The compiler I'm using is DMD (32 
bit) v2.075.0 on Windows. I've seen the list of debuggers below 
but it's been a mix of results:

https://wiki.dlang.org/Debuggers

-I don't want anything to do with Mago since it appears to be 
tied with VS
-ddbg appears to be dead
-WinDbg and OllyDbg 2 kind of work

WinDbg will allow me to step through lines of code which is great 
but I can't seem to get a list of declared variables and their 
values. If I knew how to get such a list I'd be happy. OllyDbg 2 
can debug but it appears to be on an assembly level. I don't want 
to even go there. It also seems to lack a variables list like 
WinDbg. I'd be fine with GDB if that worked but it chokes on any 
D compiled program I pass to it. Unsure if I am missing flags 
when compiling or something else. I'm hoping I am just doing 
something stupid.

Advice appreciated.

Thanks


More information about the Digitalmars-d-learn mailing list