Has anyone been able to debug with VS2005?

Lionello Lunesu lionello at lunesu.remove.com
Sun Nov 12 01:22:00 PST 2006


Actually, I only program D from within VS2005!

I use the vsplugind found on dsource, but that's only needed for building 
right from VS. Just for debugging, you don't need anything. Compiling your 
program using dmd -g will add the needed symbols to the obj/exe and VS will 
understand them! Arrays are shown as 64-bit integers, but when seen in hex, 
it's obvious what part is the count and what the pointer. Alternatively, you 
can take the array's address and cast it to a int*.

For syntax highlighting you should add .d to the extensions list in the 
options dialog, and let VS treat it as C++ or C#. Missing keywords can be 
added using a text-file called usertype.dat with a keyword on each line. It 
goes in the VS "IDE" folder, if I'm not mistaken, but better google to 
duoble check that (no VS2005 here at home).

L. 





More information about the Digitalmars-d-learn mailing list