Debug Environments
|
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.
WinDbg/CDB
Unix
GDB - Gnu Debugger
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:
|
Starting the debugger is done with:
|
Set some breakpoints or something, and then do:.......... Could somebody add a bit more to explain this? Its pretty vague
|
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.
- usenet interface: news://news.digitalmars.com/digitalmars.D.debugger
- Wiki4D shortcut example: " NG:digitalmars.D.debugger/1"
- archived threads
- Web interfaces:
Related
FolderEnvironments