How to debug in Visual studio?

Anders F Björklund afb at algonet.se
Fri Mar 30 05:29:16 PDT 2007


Daniel Keep wrote:

> 2.  Code::Block's D template is a little iffy atm.  You need to go in to
> linker options and add the '-g' switch; can't remember where, exactly.
> The reason is that dmd is both compiler and linker, and it seems that if
> you link debug code without '-g', OPTLINK will actually drop the
> debugging info.

So basically, if '-g' is automagically added to the linker options 
whenever the '-g' compiler switch is thrown - everything is peachy ?

Wonder if this applies to the DigitalMars C/C++ (dmc) compiler too...
If so, it should be flagged as a CB bug against both DMC/DMD plugin.

--anders



More information about the Digitalmars-d mailing list