Ddbg 0.0.2.3 alpha release

Vladimir Panteleev thecybershadow at gmail.com
Fri Feb 23 16:42:18 PST 2007


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 :)

-- 
Best regards,
  Vladimir                          mailto:thecybershadow at gmail.com



More information about the Digitalmars-d-announce mailing list