Discussion:
[ddbg] Preview of 0.11
Simen Haugen
2007-11-01 10:17:11 UTC
Permalink
Is it possible to get a prerelease of 0.11? The problem with setting
breakpoints in source files is killing me :)
Jascha Wetzel
2007-11-03 10:33:03 UTC
Permalink
Post by Simen Haugen
Is it possible to get a prerelease of 0.11? The problem with setting
breakpoints in source files is killing me :)
sure, i'll update the preview release as soon as this bug is fixed.
Simen Haugen
2007-11-03 19:04:19 UTC
Permalink
Great. My project now has about 10.000 debug writefln's :)
Love your work on ddbg. Might take a look at APaGeD later this year (as I'll
use tango for a private project and enki is still phobos only AFAIK)


"Jascha Wetzel" <firstname at mainia.de> wrote in message
Post by Jascha Wetzel
Post by Simen Haugen
Is it possible to get a prerelease of 0.11? The problem with setting
breakpoints in source files is killing me :)
sure, i'll update the preview release as soon as this bug is fixed.
Jascha Wetzel
2007-11-04 14:35:26 UTC
Permalink
Post by Simen Haugen
Great. My project now has about 10.000 debug writefln's :)
it should be fixed now, try this:
http://ddbg.mainia.de/Ddbg-0.11-beta%20preview2.zip
Post by Simen Haugen
Love your work on ddbg. Might take a look at APaGeD later this year (as I'll
use tango for a private project and enki is still phobos only AFAIK)
i hope you'll find more than just the tango support useful ;)
Simen Haugen
2007-11-09 11:47:47 UTC
Permalink
It works fine now. Thanks again.

"Jascha Wetzel" <firstname at mainia.de> wrote in message
Post by Jascha Wetzel
Post by Simen Haugen
Great. My project now has about 10.000 debug writefln's :)
http://ddbg.mainia.de/Ddbg-0.11-beta%20preview2.zip
Post by Simen Haugen
Love your work on ddbg. Might take a look at APaGeD later this year (as
I'll use tango for a private project and enki is still phobos only AFAIK)
i hope you'll find more than just the tango support useful ;)
Ary Manzana
2007-11-09 12:41:07 UTC
Permalink
What is the exactly problem solved in 0.11?
Post by Simen Haugen
It works fine now. Thanks again.
"Jascha Wetzel" <firstname at mainia.de> wrote in message
Post by Jascha Wetzel
Post by Simen Haugen
Great. My project now has about 10.000 debug writefln's :)
http://ddbg.mainia.de/Ddbg-0.11-beta%20preview2.zip
Post by Simen Haugen
Love your work on ddbg. Might take a look at APaGeD later this year (as
I'll use tango for a private project and enki is still phobos only AFAIK)
i hope you'll find more than just the tango support useful ;)
Jascha Wetzel
2007-11-09 14:48:42 UTC
Permalink
Post by Ary Manzana
What is the exactly problem solved in 0.11?
there are several fixes and changes in the preview and a lot more to
come for 0.11. this particular issue was, that ddbg got confused about
source lines if multiple object files specified to have received source
lines from the same source file. ddbg did a module-local
first-best-match on the source line needed for the breakpoint, but
needed to do a module-global best-match (any line number in the same
file >= the one requested matches, less distance is better).
e.g. module a has code from source line set A, module b from source line
set B, both sets from the same file. you set a breakpoint on a line in
B, ddbg searches all line sets, happens to search A first, finds a
module-local best-match and uses that instead of trying B too, which
would lead to a better match -> your breakpoint sits on the wrong line.
dickl
2007-11-08 22:10:22 UTC
Permalink
I get an "4invalid UTF-8 sequence" error when stepping over a
LoadLibraryA call.

import std.c.windows.windows;
void main()
{
HANDLE hLib;
hLib = LoadLibraryA("RICHED32.DLL");
FreeLibrary(hLib);
}
Jascha Wetzel
2007-11-09 15:12:39 UTC
Permalink
Post by dickl
I get an "4invalid UTF-8 sequence" error when stepping over a
LoadLibraryA call.
import std.c.windows.windows;
void main()
{
HANDLE hLib;
hLib = LoadLibraryA("RICHED32.DLL");
FreeLibrary(hLib);
}
hm, it works for me (using dmd 1.023, ddbg 0.10 and 0.11 preview2). but
someone else had such a problem before and i wasn't able to reproduce it
either.
which dmd version do you use? windows version? what console (power
shell, xp cmd)?
dickl
2007-11-09 15:31:47 UTC
Permalink
Post by Jascha Wetzel
Post by dickl
I get an "4invalid UTF-8 sequence" error when stepping over a
LoadLibraryA call.
import std.c.windows.windows;
void main()
{
HANDLE hLib;
hLib = LoadLibraryA("RICHED32.DLL");
FreeLibrary(hLib);
}
hm, it works for me (using dmd 1.023, ddbg 0.10 and 0.11 preview2). but
someone else had such a problem before and i wasn't able to reproduce it
either.
which dmd version do you use? windows version? what console (power
shell, xp cmd)?
DMD 1.023
ddbg 0.11b2
Vista x64 + cmd

I'll try it under XP sp2 later on
Jascha Wetzel
2007-11-09 16:35:50 UTC
Permalink
Post by dickl
Post by Jascha Wetzel
Post by dickl
I get an "4invalid UTF-8 sequence" error when stepping over a
LoadLibraryA call.
import std.c.windows.windows;
void main()
{
HANDLE hLib;
hLib = LoadLibraryA("RICHED32.DLL");
FreeLibrary(hLib);
}
hm, it works for me (using dmd 1.023, ddbg 0.10 and 0.11 preview2).
but someone else had such a problem before and i wasn't able to
reproduce it either.
which dmd version do you use? windows version? what console (power
shell, xp cmd)?
DMD 1.023
ddbg 0.11b2
Vista x64 + cmd
I'll try it under XP sp2 later on
ah, ok - i can reproduce it on vista, too. i'll take care of that.
Samo Prelog
2007-11-11 19:56:44 UTC
Permalink
will ddbg 0.11 support debugging of dlls?
Post by Simen Haugen
Is it possible to get a prerelease of 0.11? The problem with setting
breakpoints in source files is killing me :)
Jascha Wetzel
2007-11-11 23:16:32 UTC
Permalink
Post by Samo Prelog
will ddbg 0.11 support debugging of dlls?
yep
Samo Prelog
2007-11-12 11:28:08 UTC
Permalink
Post by Samo Prelog
will ddbg 0.11 support debugging of dlls?
Loading symbols from C:\Eclipse Projects\testproject\src\testdll.d
"C:\Eclipse Projects\testproject\src\testdll.d" ist not a valid COFF PE executable: DataReader.seek beyond end of data offset=778269299, $=941
Jascha Wetzel
2007-11-12 13:35:27 UTC
Permalink
Post by Samo Prelog
Post by Samo Prelog
will ddbg 0.11 support debugging of dlls?
Loading symbols from C:\Eclipse Projects\testproject\src\testdll.d
"C:\Eclipse Projects\testproject\src\testdll.d" ist not a valid COFF PE executable: DataReader.seek beyond end of data offset=778269299, $=941
It's not implemented yet (and it won't be before December).
Unrelated note: the error message suggests that you're trying to debug
the source file. The "Loading symbols from..." message should state an
exe file.

Loading...