Thread overview | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
February 23, 2007 Ddbg 0.0.2.3 alpha release | ||||
---|---|---|---|---|
| ||||
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 Re: Ddbg 0.0.2.3 alpha release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jascha Wetzel | 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 Re: Ddbg 0.0.2.3 alpha release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jascha Wetzel | 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 Re: Ddbg 0.0.2.3 alpha release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bradley Smith | 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 Re: Ddbg 0.0.2.3 alpha release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bill Baxter | 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 Re: Ddbg 0.0.2.3 alpha release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jascha Wetzel | 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 Re: Ddbg 0.0.2.3 alpha release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bradley Smith | 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 Re: Ddbg 0.0.2.3 alpha release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jascha Wetzel | 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 Re: Ddbg 0.0.2.3 alpha release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bradley Smith | 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 Re: Ddbg 0.0.2.3 alpha release | ||||
---|---|---|---|---|
| ||||
Posted in reply to Vladimir Panteleev | 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.
|
Copyright © 1999-2021 by the D Language Foundation