helpful runtime error messages
Jesse Phillips
jessekphillips+D at gmail.com
Tue Dec 14 10:44:27 PST 2010
spir Wrote:
> Hello,
>
>
> Am I the only one who gets, as only kind of runtime errors, spectacularly helpful messages like:
>
> int f () {return 0;}
> void main () {
> assert (f() == 1);
> }
> ==>
> spir at o:~/prog/d/Text$ ./__trials__
> core.exception.AssertError at __trials__(44): Assertion failure
That is the location of the assertion failure. The stack trace actually needs to have -L--export-dynamic as an argument this should be in the latest dmd.conf file already. Also compile with -gc will help, didn't seem to be required though.
More information about the Digitalmars-d-learn
mailing list