www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.debugger - Debug in Eclipse

reply "Derix" <derix dexample.com> writes:
Hi there,

So I've just dived into D-World. Installed Eclipse with the DDT 
plugin and dmd compiler, so far so good.

The next step would be to include a debugger. I've googled around 
and I see this seems to be an ubiquitous question but I haven't 
fetched a conclusive solution. Before I dig deeper and hack my 
way, could anybody point me toward what works best nowadays ?

And oh, so far I'm on Linux 64-bit. Could move to Windows if 
necessary but I'd rather not to.

Thanks a lot and D on !
Oct 20 2013
parent reply "ilya-stromberg" <ilya-stromberg-2009 yandex.ru> writes:
On Sunday, 20 October 2013 at 09:39:23 UTC, Derix wrote:
 Hi there,

 So I've just dived into D-World. Installed Eclipse with the DDT 
 plugin and dmd compiler, so far so good.

 The next step would be to include a debugger. I've googled 
 around and I see this seems to be an ubiquitous question but I 
 haven't fetched a conclusive solution. Before I dig deeper and 
 hack my way, could anybody point me toward what works best 
 nowadays ?

 And oh, so far I'm on Linux 64-bit. Could move to Windows if 
 necessary but I'd rather not to.

 Thanks a lot and D on !
I used ZeroBUGS a few years ago: http://zerobugs.codeplex.com/ Also, look at the wiki page: http://wiki.dlang.org/Debuggers You can try to use Eclipse/CDT to debug D programs. Debug support from DDT is coming, but I don't know when.
Oct 21 2013
parent reply "karl" <ultrano hotmail.com> writes:
I have the same issue, but use Windows and would rather not boot 
Linux to use Dlang.
- DMD: I can't understand why dmd precludes DWARF support on 
Windows.
- LDC has DLL issues under Windows;  (missing libstdc++-6.dll, 
but no replacement version of it has 
_ZSt24_throw_out_of_range_fmtPKcz . )
- GDC binaries flying around are "conveniently" missing all vital 
DLLs, and mix'n'matching them with binaries grabbed from the old 
gcc-4.6.1 mingw/TDM doesn't work-out. Some helpful individuals 
published scripts to compile GDC for Windows, but those 
turned-out to be of the "works on my machine" variety.

- Visual D seems to require a full VisualStudio license, being a 
plugin.
- MonoD/etc rely on GDB, so have same issues as Eclipse.

- WinDBG, prepackaged with dmd is unwieldy and shows no backtrace 
with dmd -g or dmd -gc :
 k
 0018fcf8  00406f00  0x7781c42d
TL;DR Seems like Dlang is only usable on Linux, or with a pricey VisualStudio subscription :( . I'll try to hack DMD to emit DWARF, or play more with LDC/GDC building :(.
Feb 07 2015
next sibling parent Rainer Schuetze <r.sagitario gmx.de> writes:
On 07.02.2015 16:23, karl wrote:
 - Visual D seems to require a full VisualStudio license, being a plugin.
Microsoft just released Visual Studio Community, a free version similar to the Professional version, just limited to small companies. There has always been Visual Studio Shell, the IDE stripped of Microsoft languages, but open for extensions.
Feb 08 2015
prev sibling parent "Vladimir Panteleev" <vladimir thecybershadow.net> writes:
On Saturday, 7 February 2015 at 15:23:15 UTC, karl wrote:
 TL;DR  Seems like Dlang is only usable on Linux, or with a 
 pricey VisualStudio subscription :( . I'll try to hack DMD to 
 emit DWARF, or play more with LDC/GDC building :(.
There are several options available: - You can use -m64 or -m32mscoff, in which case the MS linker will be used, which will generate PDB files. These are read natively by WinDbg and Visual Studio. - You can use cv2pdb to convert -m32 CodeView debug info to PDB files. - Some debuggers (Mago, DDbg) support CodeView natively. DDbg is no longer maintained, though.
Feb 12 2015