Postmortem: Template unittests are bad & you shouldn't catch Error

Jacob Carlborg doob at me.com
Fri Oct 23 09:24:14 UTC 2020


On Thursday, 22 October 2020 at 20:38:32 UTC, Adam D. Ruppe wrote:

> Worth remembering catching actually loses valuable information 
> when running in a debugger and/or with core dumps enabled.

druntime should be able to detect if running inside a debugger.

> If you did want to do this, at a minimum it would have to honor 
> the DRT-trapExceptions value.

I guess this is the workaround to the above.

--
/Jacob Carlborg





More information about the Digitalmars-d mailing list