Last update March 7, 2012

Debug Environments



Table of contents of this page
Windows   
Ddbg   
DigDug   
Mago   
MSDEV (MS Visual Studio)   
MS Visual C++ 6.0   
WinDbg/CDB   
Unix   
GDB - Gnu Debugger   
GDB Hacking   
ZeroBUGS   
D Debugger Newsgroup   
Related   

Windows    

Ddbg    

a Win32 command line debugger for the D Programming Language.

DigDug    

  • Project Page
  • Though it's been mothballed, it is open source and should demonstrate implementing some debugging functions.

Mago    

A Win32 debugger for the D Programming Language.

  • Website
  • It comes integrated with the Visual D IDE as a plugin, but can be used separately as a library.

MSDEV (MS Visual Studio)    

Visual Studio versions newer than 6.0 does not support DMD's CodeView? debug format. Use the cv2pdb tool to convert the CodeView? data to a .pdb file. This will let you debug DMD executables in the Visual Studio debugger, with properly demangled D symbols. Installing the extras that come with cv2pdb will also give you proper display of all of D's data types in the Autos and Watches windows.

Some notes and tips: MS Visual Studio

MS Visual C++ 6.0    

  • Compile with -g.
  • Open the .exe with File->Open.
  • Open a source code file the same way.
  • Set a breakpoint with F9.
  • Press F5, and you're debugging.
  • Look inside the executable to figure out how the symbols are mangled, so you can add watches.
Another way to get the symbols is to compile with the '-L/map' option. That will make the linker output a .map file.

WinDbg/CDB    

WinDbg/CDB

Unix    

GDB - Gnu Debugger    

Website

Debugger for systems like Linux and Darwin, for the DMD (X86 Linux) and GDC compilers.

Debugging info is added by compiling with the -g flag:

 dmd -g program.d

Starting the debugger is done with:

gdb ./program

Set some breakpoints or something, and then do:.......... Could somebody add a bit more to explain this? Its pretty vague

Reading symbols for shared libraries .. done
(gdb) run

Also works with Descent

GDB Hacking    

I have a patch on DSource for GDB 6.3. It adds symbol demangling support as well as recognition of D's DWARF identifier, which is necessary when one compiles a D program using the -g switch. It's a work in progress, so expect more in the future.

ZeroBUGS    

D Debugger Newsgroup    

For all things related to using debuggers with D.

See also: Newsgroups

Related    


FolderEnvironments


FrontPage | News | TestPage | MessageBoard | Search | Contributors | Folders | Index | Help | Preferences | Edit

Edit text of this page (date of last change: March 7, 2012 20:22 (diff))