digitalmars.D.announce - Ddbg 0.0.2.3 alpha release
↑ ↓ ← → Jascha Wetzel <"[firstname]" mainia.de> writes:
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
↑ ↓ ← → "Kristian Kilpi" <kjkilpi gmail.com> writes:
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.)
↑ ↓ ← → Bradley Smith <digitalmars-com baysmith.com> writes:
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:
↑ ↓ ← → Bill Baxter <dnewsgroup billbaxter.com> writes:
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
↑ ↓ ← → Jascha Wetzel <"[firstname]" mainia.de> writes:
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
↑ ↓ ← → Bradley Smith <digitalmars-com baysmith.com> writes:
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
↑ ↓ ← → Frits van Bommel <fvbommel REMwOVExCAPSs.nl> writes:
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?
↑ ↓ ← → Jascha Wetzel <"[firstname]" mainia.de> writes:
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
↑ ↓ ← → "Vladimir Panteleev" <thecybershadow gmail.com> writes:
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
↑ ↓ ← → Bradley Smith <digitalmars-com baysmith.com> writes:
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.
↑ ↓ ← → =?UTF-8?B?QW5kZXJzIEYgQmrDtnJrbHVuZA==?= <afb algonet.se> writes:
Bradley Smith wrote:
Yep. That does it. I'd call that a defect in the default
D project settings for Code::Blocks.
You can report any bugs with Code::Blocks on BerliOS at:
https://developer.berlios.de/bugs/?group_id=5358
It can also be discussed on http://forums.codeblocks.org/
I'll be looking at ssues with D or Mac, when time allows.
--anders
↑ ↓ ← → Bill Baxter <dnewsgroup billbaxter.com> writes:
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:
It didn't seem to work for me when I put it in the global settings.
I had to put it in the project settings. (Maybe because the default D
project wizard overrides the setting?) Regardless, I think it needs to
be fixed in the default project. If you put it in the global settings
it applies to all build versions and not just Debug.
--bb
↑ ↓ ← → Walter Bright <newshound digitalmars.com> writes:
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.
Most programmers don't know what Codeview is (since it's a very old
format). How about changing the message to:
Error: No symbolic debug info present, try compiling with -g
?
↑ ↓ ← → Jascha Wetzel <"[firstname]" mainia.de> writes:
yep, it'll be in the next release
Walter Bright 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.
Most programmers don't know what Codeview is (since it's a very old
format). How about changing the message to:
Error: No symbolic debug info present, try compiling with -g
?
↑ ↓ ← → Bill Baxter <dnewsgroup billbaxter.com> writes:
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
This is my jaw dropping
_\
:
:
:
:
:
:
:
:
\_/ *clunk!*
WOW. With CodeBlocks + ddbg, all the sudden D feels like a real language!
How long till we can look at arrays?
--bb
↑ ↓ ← → John Reimer <terminal.node gmail.com> writes:
On Sat, 24 Feb 2007 11:38:14 +0900, Bill Baxter 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
This is my jaw dropping
_\
:
:
:
:
:
:
:
:
\_/ *clunk!*
WOW. With CodeBlocks + ddbg, all the sudden D feels like a real language!
How long till we can look at arrays?
--bb
Yeah, I'm going to try this again. I've looked at Codeblocks before, but I
think it was too buggy. Maybe it's improved now.
Between this and eclipse/descent, things are looking good for D in this
area.
-JJR
↑ ↓ ← → Jascha Wetzel <"[firstname]" mainia.de> writes:
Bill Baxter wrote:
How long till we can look at arrays?
i have to pass that question on to walter ;)
↑ ↓ ← → vanh <vanh dslextreme.com> writes:
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
.DEF Syntax Error
=== Build finished: 1 errors, 0 warnings ===
vtp
↑ ↓ ← → Jascha Wetzel <"[firstname]" mainia.de> writes:
did you try to compile that same program manually?
i can't think of a C::B related problem that would cause such an error...
vanh 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
.DEF Syntax Error
=== Build finished: 1 errors, 0 warnings ===
vtp
↑ ↓ ← → vanh <vanh dslextreme.com> writes:
Yes, manually compile the code with dmd work fine. So I downloaded the
newer 2/24 build
from codeblock web site. Now it works great thank for the debugger I
been waiting for this for awhile now.
vtp
Jascha Wetzel wrote:
did you try to compile that same program manually?
i can't think of a C::B related problem that would cause such an error...
vanh 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
.DEF Syntax Error
=== Build finished: 1 errors, 0 warnings ===
vtp
|