www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Current debugger options

reply =?UTF-8?B?Ikx1w61z?= Marques" <luismarques gmail.com> writes:
Hi there!

Is there a debugger you would recommend that understands D 
(demangling, etc) which runs under OS X? (or otherwise...)

What are you using? A patched gdb? a normal gdb? Any llvm 
version? (sometimes it seems not to recognize stack frames in my 
D code) Or just writeln?

Thanks!
Jul 29 2013
next sibling parent David <d dav1d.de> writes:
Am 29.07.2013 12:48, schrieb "Luís Marques" <luismarques gmail.com>":
 Hi there!
 
 Is there a debugger you would recommend that understands D (demangling,
 etc) which runs under OS X? (or otherwise...)
 
 What are you using? A patched gdb? a normal gdb? Any llvm version?
 (sometimes it seems not to recognize stack frames in my D code) Or just
 writeln?
 
 Thanks!

I use gdb and most of the time the mangling is easy to understand, if not I send it through the commandline-tool "ddemangle". Also kdevelop as an amazing gdb integration which works with D! Hover variables, showing content, browesable variables in ever stackframe, really worth a try!
Jul 29 2013
prev sibling next sibling parent "John Colvin" <john.loughran.colvin gmail.com> writes:
On Monday, 29 July 2013 at 11:00:27 UTC, David wrote:
 Am 29.07.2013 12:48, schrieb "Luís Marques" 
 <luismarques gmail.com>":
 Hi there!
 
 Is there a debugger you would recommend that understands D 
 (demangling,
 etc) which runs under OS X? (or otherwise...)
 
 What are you using? A patched gdb? a normal gdb? Any llvm 
 version?
 (sometimes it seems not to recognize stack frames in my D 
 code) Or just
 writeln?
 
 Thanks!

I use gdb and most of the time the mangling is easy to understand, if not I send it through the commandline-tool "ddemangle". Also kdevelop as an amazing gdb integration which works with D! Hover variables, showing content, browesable variables in ever stackframe, really worth a try!

A brief article on that would be really cool. Or at least something in the wiki.
Jul 29 2013
prev sibling parent "Gary Willoughby" <Dev nomad.so> writes:
On Monday, 29 July 2013 at 10:48:13 UTC, Luís Marques wrote:
 Hi there!

 Is there a debugger you would recommend that understands D 
 (demangling, etc) which runs under OS X? (or otherwise...)

 What are you using? A patched gdb? a normal gdb? Any llvm 
 version? (sometimes it seems not to recognize stack frames in 
 my D code) Or just writeln?

 Thanks!

I've been using cgdb on Mac OS which is gdb but with a curses ui. On Linux I use DDD but its not ideal as it looks terrible and crashes etc. I've also tried something called affinic debugger on Mac OS but again it's just a ui on gdb and is slow. D could do with someone spending a bit of time polishing up a preferred debugger currently one doesn't really exist.
Jul 29 2013