Line numbers in backtraces (2017)

Tobias Pankrath tobias at pankrath.net
Wed Nov 1 06:44:44 UTC 2017


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.


More information about the Digitalmars-d-learn mailing list