Program logic bugs vs input/environmental errors

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Sun Sep 28 11:25:25 PDT 2014


Walter Bright:

> I suggest removal of stack trace for exceptions, but leaving 
> them in for asserts.

I suggest to keep stack trace for both cases, and improve it with 
colors :-) Another possibility is to keep the stack trace for 
exceptions in nonrelease mode only.


> Asserts are a deliberately designed debugging tool. Exceptions 
> are not.

Exceptions are often used to help debugging... We have even 
allowed exceptions inside D contracts (but I don't know why).

Bye,
bearophile


More information about the Digitalmars-d mailing list