Discussion:
Debugger options
Gyula Gubacsi
2012-02-01 10:31:13 UTC
Permalink
Hi,

Can somebody update me on how the compiler/debugger implementations
are going on the 3 main platforms? What are you using, which is the
most useful for D applications? To my knowledge, the situation is like
this:
* Windows: DMD-> producing CodeView debug info format. -> No GDB support.
????????????????? Old version of WinDBG is in the D bundle.
???????????????? GDC ?
* Linux: DMD/GDC-> producing DWARF debug info format -> Very limited
GDB support as GDB has no explicit D support. How does that work with
the C style debug info? Is both GDC and DMD reliable on producing
correct debug info?
* Mac: I have no experience on this platform but the situation must be
something similar to Linux.
32/64bit: Are there any limitation if the executable is 64bit?

Could someone fill the gaps for me?

Thanks

Gyula Gubacsi
Jacob Carlborg
2012-02-01 14:29:49 UTC
Permalink
Post by Gyula Gubacsi
Hi,
Can somebody update me on how the compiler/debugger implementations
are going on the 3 main platforms? What are you using, which is the
most useful for D applications? To my knowledge, the situation is like
* Windows: DMD-> producing CodeView debug info format. -> No GDB support.
Old version of WinDBG is in the D bundle.
GDC ?
* Linux: DMD/GDC-> producing DWARF debug info format -> Very limited
GDB support as GDB has no explicit D support. How does that work with
the C style debug info? Is both GDC and DMD reliable on producing
correct debug info?
* Mac: I have no experience on this platform but the situation must be
something similar to Linux.
32/64bit: Are there any limitation if the executable is 64bit?
GDB and DWARF is used on Mac OS X as well. 32/64bit is not a problem on
Mac OS X, almost all libraries and tools are available in both 32 and
64bit variants.
--
/Jacob Carlborg
Rainer Schuetze
2012-02-01 21:39:59 UTC
Permalink
Hi,
Post by Gyula Gubacsi
Hi,
Can somebody update me on how the compiler/debugger implementations
are going on the 3 main platforms? What are you using, which is the
most useful for D applications? To my knowledge, the situation is like
* Windows: DMD-> producing CodeView debug info format. -> No GDB support.
Old version of WinDBG is in the D bundle.
GDC ?
With the help of cv2pdb (http://dsource.org/projects/cv2pdb) the dmd
generated debug information can be converted to a pdb file, so you can
use most C++ debuggers including Visual Studio.
Visual D (http://www.dsource.org/projects/visuald) includes cv2pdb, but
also mago (http://dsource.org/projects/mago_debugger). mago is a Visual
Studio debug engine that works directly on the dmd generated debug info,
but still misses some features of other debuggers.

There is also ddbg (http://ddbg.mainia.de/) which integrates with other
IDEs, but it is no longer updated. I don't know how well it works with
recent dmd releases.

The next Visual D/cv2pdb version will feature gdc support including
debugging (cv2pdb will convert the DWARF info to pdb).

Rainer
Gyula Gubacsi
2012-02-01 22:05:06 UTC
Permalink
Thanks for your answer.

I am aware of the Visual D's solution for debugging but I'm actually
looking for a candidate debugger for integrating in to DDT, so these
solutions won't work for me.
Post by Rainer Schuetze
Hi,
Post by Gyula Gubacsi
Hi,
Can somebody update me on how the compiler/debugger implementations
are going on the 3 main platforms? What are you using, which is the
most useful for D applications? To my knowledge, the situation is like
* Windows: DMD-> ?producing CodeView debug info format. -> ?No GDB
support.
? ? ? ? ? ? ? ? ? Old version of WinDBG is in the D bundle.
? ? ? ? ? ? ? ? ?GDC ?
With the help of cv2pdb (http://dsource.org/projects/cv2pdb) the dmd
generated debug information can be converted to a pdb file, so you can use
most C++ debuggers including Visual Studio.
Visual D (http://www.dsource.org/projects/visuald) includes cv2pdb, but also
mago (http://dsource.org/projects/mago_debugger). mago is a Visual Studio
debug engine that works directly on the dmd generated debug info, but still
misses some features of other debuggers.
There is also ddbg (http://ddbg.mainia.de/) which integrates with other
IDEs, but it is no longer updated. I don't know how well it works with
recent dmd releases.
The next Visual D/cv2pdb version will feature gdc support including
debugging (cv2pdb will convert the DWARF info to pdb).
Rainer
Zachary Lund
2012-02-09 17:10:45 UTC
Permalink
On Wednesday, 1 February 2012 at 22:05:16 UTC, Gyula Gubacsi
Post by Gyula Gubacsi
Thanks for your answer.
I am aware of the Visual D's solution for debugging but I'm
actually
looking for a candidate debugger for integrating in to DDT, so
these
solutions won't work for me.
On 1 February 2012 21:39, Rainer Schuetze <r.sagitario at gmx.de>
Post by Rainer Schuetze
Hi,
Post by Gyula Gubacsi
Hi,
Can somebody update me on how the compiler/debugger
implementations
are going on the 3 main platforms? What are you using, which
is the
most useful for D applications? To my knowledge, the
situation is like
* Windows: DMD-> ?producing CodeView debug info format. ->
?No GDB
support.
? ? ? ? ? ? ? ? ? Old version of WinDBG is in the D
bundle.
? ? ? ? ? ? ? ? ?GDC ?
With the help of cv2pdb (http://dsource.org/projects/cv2pdb)
the dmd
generated debug information can be converted to a pdb file, so
you can use
most C++ debuggers including Visual Studio.
Visual D (http://www.dsource.org/projects/visuald) includes
cv2pdb, but also
mago (http://dsource.org/projects/mago debugger). mago is a
Visual Studio
debug engine that works directly on the dmd generated debug
info, but still
misses some features of other debuggers.
There is also ddbg (http://ddbg.mainia.de/) which integrates
with other
IDEs, but it is no longer updated. I don't know how well it
works with
recent dmd releases.
The next Visual D/cv2pdb version will feature gdc support
including
debugging (cv2pdb will convert the DWARF info to pdb).
Rainer
http://zerobugs.codeplex.com/

?
Gyula Gubacsi
2012-02-10 13:03:21 UTC
Permalink
I'm not sure man, because it seems that it is only available for Linux. I'm
leaning towards GDB (used with GDC on Windows) as it is well established,
multiplatform and will definitely stay around for a while. I'm open for
ZeroBugs though but I need a working Windows version which could be used
against a DMD produced executable.
Post by Zachary Lund
Post by Gyula Gubacsi
Thanks for your answer.
I am aware of the Visual D's solution for debugging but I'm actually
looking for a candidate debugger for integrating in to DDT, so these
solutions won't work for me.
Hi,
Post by Gyula Gubacsi
Hi,
Can somebody update me on how the compiler/debugger implementations
are going on the 3 main platforms? What are you using, which is the
most useful for D applications? To my knowledge, the situation is like
* Windows: DMD-> producing CodeView debug info format. -> No GDB support.
Old version of WinDBG is in the D bundle.
GDC ?
With the help of cv2pdb (http://dsource.org/projects/**cv2pdb<http://dsource.org/projects/cv2pdb>)
the dmd
generated debug information can be converted to a pdb file, so you can
use
most C++ debuggers including Visual Studio.
Visual D (http://www.dsource.org/**projects/visuald<http://www.dsource.org/projects/visuald>)
includes cv2pdb, but also
mago (http://dsource.org/projects/**mago<http://dsource.org/projects/mago>debugger). mago is a Visual Studio
debug engine that works directly on the dmd generated debug info, but
still
misses some features of other debuggers.
There is also ddbg (http://ddbg.mainia.de/) which integrates with other
IDEs, but it is no longer updated. I don't know how well it works with
recent dmd releases.
The next Visual D/cv2pdb version will feature gdc support including
debugging (cv2pdb will convert the DWARF info to pdb).
Rainer
http://zerobugs.codeplex.com/
?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-debugger/attachments/20120210/1225a7ca/attachment.html>
Loading...