www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - RemedyBG as a windows D debugger

reply Tony~! <tony de.com> writes:
I have been coding some simple examples in D to get the hang of 
the language although it's really similar to C. I on one of the 
sites recommended that 
[remedyBG](https://remedybg.itch.io/remedybg) could be used as a 
paid debugger and I've used it before for a C++ program. Nobody 
on this forum seems to have mentioned it yet as a D debugger.

[ImgBB image](https://i.ibb.co/rGrR84zd/Remedy-BG-D-Code-01.png)

Suprisingly it works quite well, it works on both with dmd and 
ldc2 compilers. The dissasembly shows up and things in the watch 
window mostly work. Structs and classes work with basic types but 
I could not get tuples to show up in the watch window.

RemedyBG just worked right out of the box, I was trying to get 
gdb to work with either of the compilers and I just couldn't get 
it to find the symbols.

If you are on Windows 10 or 11 I would recommend remedyBG for 
debugging D, in my estimation it is well worth the price 
especially if you also want to test C/C++ files in the future.
Aug 04
next sibling parent reply Luna <luna foxgirls.gay> writes:
On Tuesday, 5 August 2025 at 00:54:14 UTC, Tony~! wrote:
 I have been coding some simple examples in D to get the hang of 
 the language although it's really similar to C. I on one of the 
 sites recommended that 
 [remedyBG](https://remedybg.itch.io/remedybg) could be used as 
 a paid debugger and I've used it before for a C++ program. 
 Nobody on this forum seems to have mentioned it yet as a D 
 debugger.

 [ImgBB image](https://i.ibb.co/rGrR84zd/Remedy-BG-D-Code-01.png)

 Suprisingly it works quite well, it works on both with dmd and 
 ldc2 compilers. The dissasembly shows up and things in the 
 watch window mostly work. Structs and classes work with basic 
 types but I could not get tuples to show up in the watch window.

 RemedyBG just worked right out of the box, I was trying to get 
 gdb to work with either of the compilers and I just couldn't 
 get it to find the symbols.

 If you are on Windows 10 or 11 I would recommend remedyBG for 
 debugging D, in my estimation it is well worth the price 
 especially if you also want to test C/C++ files in the future.
There is a switch to emit C++-like debug info; dub also has the "debugInfoC" build option to handle it across compilers. May help a bit with templated types.
Aug 04
parent Tony~! <tony de.com> writes:
On Tuesday, 5 August 2025 at 01:10:12 UTC, Luna wrote:
 On Tuesday, 5 August 2025 at 00:54:14 UTC, Tony~! wrote:
 [...]
There is a switch to emit C++-like debug info; dub also has the "debugInfoC" build option to handle it across compilers. May help a bit with templated types.
Thanks for that infomation, it solved some of my problems of remedy halting on functions like dirEntries and debugging with D and raylib.
Aug 07
prev sibling parent reply Dennis <dkorpel gmail.com> writes:
On Tuesday, 5 August 2025 at 00:54:14 UTC, Tony~! wrote:
 If you are on Windows 10 or 11 I would recommend remedyBG for 
 debugging D, in my estimation it is well worth the price 
 especially if you also want to test C/C++ files in the future.
I've heard good things about remedyBG, but there's also the free RAD Debugger: https://github.com/EpicGamesExt/raddebugger It's still in alpha state, but I've succesfully used it twice for my D code on Windows so far, to find a null dereference and a write to immutable memory. That's not much usage yet, but the experience so far has been excellent, so it's also worth mentioning. I can't wait for them to expand to linux/DWARF debug info.
Aug 05
parent Tony~! <tony de.com> writes:
On Tuesday, 5 August 2025 at 09:55:41 UTC, Dennis wrote:
 On Tuesday, 5 August 2025 at 00:54:14 UTC, Tony~! wrote:
 If you are on Windows 10 or 11 I would recommend remedyBG for 
 debugging D, in my estimation it is well worth the price 
 especially if you also want to test C/C++ files in the future.
I've heard good things about remedyBG, but there's also the free RAD Debugger: https://github.com/EpicGamesExt/raddebugger It's still in alpha state, but I've succesfully used it twice for my D code on Windows so far, to find a null dereference and a write to immutable memory. That's not much usage yet, but the experience so far has been excellent, so it's also worth mentioning. I can't wait for them to expand to linux/DWARF debug info.
I've heard good things about the rad debugger, I'll definitely check this out!
Aug 07