How to debug and watch globals in windows debugger?

Steven Schveighoffer schveiguy at gmail.com
Wed Mar 29 15:26:21 UTC 2023


On 3/28/23 6:42 PM, ryuukk_ wrote:

> 
> Am i the only want who want to improve things, is it a lost cause?

I'm not one to use a debugger often, but it is very helpful for many 
people. I lament that the Windows debugging situation out of the box is 
dreadful. The students I teach D to I don't show the debugger because 
I'm worried it would confuse them more than help.

I both don't use Windows and mostly do debugging via writeln, so for 
something that doesn't affect me much, I tend not to put effort in. I'm 
hoping someone who is motivated enough will do it.

If I recall correctly, visual studio debugging is better than the other 
solutions. But I don't know having never got debugging to work. I've 
heard that mago is supposed to work better, and was written for D, but 
is Visual Studio dependent: https://github.com/rainers/mago

I wonder if there isn't some way to make this work well for other IDEs? 
I couldn't get it to work on VSCode.

> Should i move on?

In any case, the debugging experience isn't perfect, but seems like a 
drastic measure to leave D altogether if you can't debug globals.

-Steve


More information about the Digitalmars-d-learn mailing list