How to debug D on Linux

evilrat evilrat666 at gmail.com
Wed Jan 13 14:13:17 UTC 2021


if you are looking for back trace someone recently posted a hint 
for linux where there is no back trace by default is to import 
core.sys.linux.backtrace or something that has back trace info 
and using it in exception handler for runtime to print the stack 
trace.
https://dlang.org/phobos/core_runtime.html#.defaultTraceHandler


On Wednesday, 13 January 2021 at 13:47:55 UTC, Roguish wrote:
>
> One specific question I have is: what's the difference between 
> -g and -debug and -d-debug?

no idea what is -d-debug, but -g will emit debug info for 
debugger, and -debug will turn on certain features such as 
contracts and asserts even in release builds.


More information about the Digitalmars-d-learn mailing list