Line numbers in backtraces (2017)
Moritz Maxeiner
moritz at ucworks.org
Wed Nov 1 08:18:43 UTC 2017
On Wednesday, 1 November 2017 at 06:44:44 UTC, Tobias Pankrath
wrote:
> On Tuesday, 31 October 2017 at 11:21:30 UTC, Moritz Maxeiner
> wrote:
>> On Tuesday, 31 October 2017 at 11:04:57 UTC, Tobias Pankrath
>> wrote:
>>> [...]
>>>> ??:? pure @safe void
>>>> std.exception.bailOut!(Exception).bailOut(immutable(char)[],
>>>> ulong, const(char[])) [0xab5c9566]
>>>> ??:? pure @safe bool std.exception.enforce!(Exception,
>>>> bool).enforce(bool, lazy const(char)[], immutable(char)[],
>>>> ulong) [0xab5c94e2]
>>>
>>>
>>> I've found this StackOverflow Question from 2011 [1] and if I
>>> remember correctly this could be fixed by adding
>>> -L--export-dynamic which already is part of my dmd.conf
>>>
>>> [...]
>>>
>>> [1]
>>> https://stackoverflow.com/questions/8209494/how-to-show-line-numbers-in-d-backtraces
>>
>> Does using dmd's `-g` option (compile with debug symbols) not
>> work[1]?
>>
>> [1] This is also what the answer in your linked SO post
>> suggest?
>
> Of course I've tried this.
Including Phobos? Your posted backtrace looks to me like
templates instantiated within Phobos, so I think you'd need
Phobos with debug symbols for those lines.
More information about the Digitalmars-d-learn
mailing list