Debugging on Windows

Arokh Slade arokhslade at gmail.com
Tue May 6 17:24:15 UTC 2025


On Friday, 25 April 2025 at 21:13:24 UTC, Imperatorn wrote:
> On Wednesday, 16 April 2025 at 20:08:00 UTC, Arokh Slade wrote:
>> Hello,
>>
>> I'm trying to get debugging on windows 10 to work.
>> d_test.d
>> ```D
>> void main() {
>> 	int i;
>> }
>> ```
>> I compile with:
>> dmd -g -gf -m64 .\d_test.d
>>
>> I load the msvc debugger with
>> devenv /DebugExe .\d_test.exe
>>
>> latest visualD installed.
>>
>> I can step into the program, but when I add `i` to the watch 
>> window,
>> msvs 2022 enters an infinite loop, allocating memory 
>> indefinitely (I watched until it passed 10GB).
>>
>> Any tips?
>> How do other people debug on windows?
>
> Use RemedyBG
>
> https://remedybg.itch.io/remedybg

Hey! Thanks for the suggestion.

I'd rather figure out whatever is the problem between my 
particular Visual Studio configuration and what VisualD needs to 
work.
I installed it on another machine today and it worked almost out 
of the box, except for having to restart Visual Studio.
I had hoped someone may have experience with similar issues.

Out of curiosity, how do you go about debugging Dlang specific 
features with remedybg, like ranges, associative arrays, mixins 
or templates?


More information about the Digitalmars-d-learn mailing list