digitalmars.D.learn - Debugging on Windows
- Arokh Slade (19/19) Apr 16 Hello,
- Python (2/21) Apr 17 Using Visual Studio.
- Arokh Slade (4/30) Apr 20 Thank you, Python, for taking the time to respond.
- Mike Shah (4/23) Apr 17 I have somewhere some instructions on windbg which my students
- Arokh Slade (18/46) Apr 19 Hello Mike.
- Imperatorn (3/22) Apr 25 Use RemedyBG
- Arokh Slade (11/38) May 06 Hey! Thanks for the suggestion.
- Justin Allen Parrott (2/3) May 12 Debuggers phased out in the nineties
- Python (3/6) May 13 Press F12 in your browser. You'll be surprised.
- Justin Allen Parrott (2/8) May 13 I am not
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?
Apr 16
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?Using Visual Studio.
Apr 17
On Thursday, 17 April 2025 at 14:45:32 UTC, Python wrote:On Wednesday, 16 April 2025 at 20:08:00 UTC, Arokh Slade wrote:Thank you, Python, for taking the time to respond. Yes, it seemed to me that Visual D would provide the best out-of-the-box experience, since it's been around for a long time.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?Using Visual Studio.
Apr 20
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?I have somewhere some instructions on windbg which my students pointed me to at some point. Have you given that a try? I can try to find them in the meantime.
Apr 17
On Friday, 18 April 2025 at 02:21:23 UTC, Mike Shah wrote:On Wednesday, 16 April 2025 at 20:08:00 UTC, Arokh Slade wrote:Hello Mike. Thanks for trying to help. I've watched some of your vids on Youtube, and appreciate your work. I've given WinDBG a try following your suggestion. It's an improvement in that the infinite-loop-with-memory-leak doesn't happen and I can inspect the value of an int. However, I can't inspect arrays because it doesn't know D, only C/C++. What I'm really looking for is to get VisualD working properly, as demonstrated on the official site. https://rainers.github.io/visuald/visuald/Debugging.html I had to set up a lot of paths manually, for it to find the visual studio linker and several of the linked libraries, like user32.lib. Not sure what I could have done wrong there but I can't imagine what else could be the problem. Has anyone else had issues with inspecting variables in VisualD?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?I have somewhere some instructions on windbg which my students pointed me to at some point. Have you given that a try? I can try to find them in the meantime.
Apr 19
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
Apr 25
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: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?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
May 06
On Wednesday, 16 April 2025 at 20:08:00 UTC, Arokh Slade wrote:Any tips?Debuggers phased out in the nineties
May 12
On Monday, 12 May 2025 at 07:33:34 UTC, Justin Allen Parrott wrote:On Wednesday, 16 April 2025 at 20:08:00 UTC, Arokh Slade wrote:Press F12 in your browser. You'll be surprised.Any tips?Debuggers phased out in the nineties
May 13
On Tuesday, 13 May 2025 at 14:19:41 UTC, Python wrote:On Monday, 12 May 2025 at 07:33:34 UTC, Justin Allen Parrott wrote:I am notOn Wednesday, 16 April 2025 at 20:08:00 UTC, Arokh Slade wrote:Press F12 in your browser. You'll be surprised.Any tips?Debuggers phased out in the nineties
May 13