Ddbg 0.0.2.3 alpha release

Bradley Smith digitalmars-com at baysmith.com
Fri Feb 23 16:54:59 PST 2007


Vladimir Panteleev wrote:
> On Sat, 24 Feb 2007 01:35:03 +0200, Jascha Wetzel <"[firstname]"@mainia.de> wrote:
> 
>> he probably didn't. "Error: Empty CodeView data" is what happens in this
>> case.
>> debugging executables without symbols isn't supported, yet.
> 
> Note to Code::Blocks users:
> 
> When building D programs from the CB IDE, you need to pass the -g parameter to DMD not just in the compilation phase, but in the link phase as well. Since with DMD, dmd.exe is the linker as well, you have to set the following options either in the project's build options or in the global "Compiler and debugger" settings:
> 
> 1) Compiler settings -> Compiler flags -> check "add symbolic debug info [-g]" (and, optionally, "compile in debug code [-debug])
> 
> 2) Linker settings -> Other linker options - add "-g".
> 
> Now, just set the debugger in Compiler settings -> Toolchain executables to ddbg_gdb.exe, and you should be able to debug your programs :)
> 

Yep. That does it. I'd call that a defect in the default D project 
settings for Code::Blocks.

Thanks.



More information about the Digitalmars-d-announce mailing list