Jump to page: 1 2
Thread overview
Ddbg 0.0.2.3 alpha release
Feb 23, 2007
Jascha Wetzel
Feb 23, 2007
Kristian Kilpi
Feb 23, 2007
Bradley Smith
Feb 23, 2007
Bill Baxter
Feb 23, 2007
Jascha Wetzel
Feb 23, 2007
Bradley Smith
Feb 24, 2007
Frits van Bommel
Feb 24, 2007
Jascha Wetzel
Feb 24, 2007
Vladimir Panteleev
Feb 24, 2007
Bradley Smith
Feb 24, 2007
Bill Baxter
Feb 24, 2007
Walter Bright
Feb 24, 2007
Jascha Wetzel
Feb 24, 2007
Bill Baxter
Feb 24, 2007
John Reimer
Feb 24, 2007
Jascha Wetzel
Feb 24, 2007
vanh
Feb 25, 2007
Jascha Wetzel
Feb 25, 2007
vanh
February 23, 2007
Ddbg is a Win32 D Debugger

http://ddbg.mainia.de/releases.html

This release supports integration into the Code::Blocks IDE

http://ddbg.mainia.de/cb_ddbg.jpg
February 23, 2007
On Sat, 24 Feb 2007 00:16:16 +0200, Jascha Wetzel <"[firstname]"@mainia.de> wrote:

> Ddbg is a Win32 D Debugger
>
> http://ddbg.mainia.de/releases.html
>
> This release supports integration into the Code::Blocks IDE
>
> http://ddbg.mainia.de/cb_ddbg.jpg

Sweet! Now I am 'forced' to download C::B... ;)
('Never had time' to do that until now.)
February 23, 2007
Jascha Wetzel wrote:
> Ddbg is a Win32 D Debugger
> 
> http://ddbg.mainia.de/releases.html
> 
> This release supports integration into the Code::Blocks IDE
> 
> http://ddbg.mainia.de/cb_ddbg.jpg

I get an error when trying to use it within Code::Blocks. Here is the debugger log:

Command-line: C:\ddbg\ddbg_gdb.exe -nx -fullname  -quiet -args bin/Debug/test.exe
Working dir : c:\programming\codeblocks\test\
> set prompt >>>>>>cb_gdb:
Error: Empty CodeView data

February 23, 2007
Bradley Smith wrote:
> Jascha Wetzel wrote:
>> Ddbg is a Win32 D Debugger
>>
>> http://ddbg.mainia.de/releases.html
>>
>> This release supports integration into the Code::Blocks IDE
>>
>> http://ddbg.mainia.de/cb_ddbg.jpg
> 
> I get an error when trying to use it within Code::Blocks. Here is the debugger log:
> 
> Command-line: C:\ddbg\ddbg_gdb.exe -nx -fullname  -quiet -args bin/Debug/test.exe
> Working dir : c:\programming\codeblocks\test\
>  > set prompt >>>>>>cb_gdb:
> Error: Empty CodeView data
> 

Did you remember to compile -g?

--bb
February 23, 2007
he probably didn't. "Error: Empty CodeView data" is what happens in this
case.
debugging executables without symbols isn't supported, yet.

Bill Baxter wrote:
> Bradley Smith wrote:
>> Jascha Wetzel wrote:
>>> Ddbg is a Win32 D Debugger
>>>
>>> http://ddbg.mainia.de/releases.html
>>>
>>> This release supports integration into the Code::Blocks IDE
>>>
>>> http://ddbg.mainia.de/cb_ddbg.jpg
>>
>> I get an error when trying to use it within Code::Blocks. Here is the debugger log:
>>
>> Command-line: C:\ddbg\ddbg_gdb.exe -nx -fullname  -quiet -args
>> bin/Debug/test.exe
>> Working dir : c:\programming\codeblocks\test\
>>  > set prompt >>>>>>cb_gdb:
>> Error: Empty CodeView data
>>
> 
> Did you remember to compile -g?
> 
> --bb
February 23, 2007
Jascha Wetzel wrote:
> he probably didn't. "Error: Empty CodeView data" is what happens in this
> case.
> debugging executables without symbols isn't supported, yet.
> 

Sorry, but you are wrong. That was the first thing I checked. I did it again to make sure, and here is the build log:

Build started on: 23-02-2007 at 15:45.20
Build ended on: 23-02-2007 at 15:45.20

-------------- Build: Debug in test ---------------
dmd.exe -g -debug -IC:\dmd\src\phobos -c hello.d -ofobj\Debug\hello.obj
dmd.exe bin\Debug\test.exe obj\Debug\hello.obj phobos.lib
C:\dmd\bin\..\..\dm\bin\link.exe obj\Debug\hello,bin\Debug\test.exe,,phobos.lib+user32+kernel32/noi;
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings
February 24, 2007
Bradley Smith wrote:
> Jascha Wetzel wrote:
>> he probably didn't. "Error: Empty CodeView data" is what happens in this
>> case.
>> debugging executables without symbols isn't supported, yet.
>>
> 
> Sorry, but you are wrong. That was the first thing I checked. I did it again to make sure, and here is the build log:
> 
> Build started on: 23-02-2007 at 15:45.20
> Build ended on: 23-02-2007 at 15:45.20
> 
> -------------- Build: Debug in test ---------------
> dmd.exe -g -debug -IC:\dmd\src\phobos -c hello.d -ofobj\Debug\hello.obj
> dmd.exe bin\Debug\test.exe obj\Debug\hello.obj phobos.lib
> C:\dmd\bin\..\..\dm\bin\link.exe obj\Debug\hello,bin\Debug\test.exe,,phobos.lib+user32+kernel32/noi;
> Process terminated with status 0 (0 minutes, 0 seconds)
> 0 errors, 0 warnings

Maybe it's because the default phobos.lib doesn't include debug symbols?
February 24, 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@gmail.com
February 24, 2007
since C::B calls the linker separately, you need to also give the -g for
the link call.
you can do this by adding "-g" in your project's build options > linker
settings > other linker options

Bradley Smith wrote:
> Jascha Wetzel wrote:
>> he probably didn't. "Error: Empty CodeView data" is what happens in this
>> case.
>> debugging executables without symbols isn't supported, yet.
>>
> 
> Sorry, but you are wrong. That was the first thing I checked. I did it again to make sure, and here is the build log:
> 
> Build started on: 23-02-2007 at 15:45.20
> Build ended on: 23-02-2007 at 15:45.20
> 
> -------------- Build: Debug in test ---------------
> dmd.exe -g -debug -IC:\dmd\src\phobos -c hello.d -ofobj\Debug\hello.obj
> dmd.exe bin\Debug\test.exe obj\Debug\hello.obj phobos.lib
> C:\dmd\bin\..\..\dm\bin\link.exe
> obj\Debug\hello,bin\Debug\test.exe,,phobos.lib+user32+kernel32/noi;
> Process terminated with status 0 (0 minutes, 0 seconds)
> 0 errors, 0 warnings
February 24, 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.
« First   ‹ Prev
1 2