Would you trade 0.1% in performance for a better debugging experience?

Kagamin via Digitalmars-d digitalmars-d at puremagic.com
Wed Nov 19 00:24:48 PST 2014


On Tuesday, 18 November 2014 at 17:15:13 UTC, Vladimir Panteleev 
wrote:
> Second, there's still the argument that not every debugger and 
> profiler can take advantage of the DWARF debug information. 
> It's certainly nowhere as easy: from the technical point of 
> view, but also from a legal one, considering that (IIRC) most 
> libraries dealing with DWARF debug information are GPL or LGPL, 
> meaning we can't use them in the D runtime. And indeed, for 
> printing the stack trace for an unhandled exception, Druntime 
> currently walks the stack frames:
>
> https://github.com/D-Programming-Language/druntime/blob/master/src/core/runtime.d#L452-L478

If it's able to throw exceptions, it means code dealing with 
DWARF is already used.


More information about the Digitalmars-d mailing list