Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What debugger can be used with D 2.0 on windows and how do I use it?

Tags:

debugging

d

I have been playing around with D 2.0 a bit today mostly because of the "The Case for D" in DDJ.

I have downloaded D 2.0 for windows but have not figured out how to step through a running program in the debugger.

I tried to get the shipped copy of windbg.exe to work but it is crashing on me all the time and does not seem to see the source code.

like image 243
Jeroen Dirks Avatar asked Jun 16 '09 21:06

Jeroen Dirks


2 Answers

There is a Windows debugger written specifically for D:

http://ddbg.mainia.de/

like image 185
Vladimir Panteleev Avatar answered Sep 17 '22 18:09

Vladimir Panteleev


Debugging in Visual Studio 2008 Express works like a charm for me with this tool: http://www.dsource.org/projects/cv2pdb

You can also use windbg 4 or msvc 6, but then you won't see the values of the special D types (like dynamic arrays and hashes) easily.

like image 45
torhu Avatar answered Sep 21 '22 18:09

torhu