It is impossible to debug code compiled with dmd

Robert Clipsham robert at octarineparrot.com
Wed Mar 31 12:46:11 PDT 2010


On 31/03/10 19:31, Matthias Pleh wrote:
>> Having played with the testcase you sent me, it isn't another bug. You
>> were using -g instead of -gc, which won't work until debuggers support
>> the D extensions to debug info. When using -gc it gives the error as
>> reported in bug #3987, so it should work when that is fixed.
>
> Does this mean, the -g option only works in compination with the ddbg
> debugger and all other debugger need the -gc option?
> I need this to set a defaultsetting in codeblocks!

Having never used ddbg I can't say if it supports -g or not (although it 
looks like it should). But yes, as far as I'm aware, all other debuggers 
need -gc to be used, unless they have had D support written for them 
(even gdb with the D patches doesn't support -g).



More information about the Digitalmars-d mailing list