D 2.0 Stacktrace

Benjamin Thaut code at benjamin-thaut.de
Wed Oct 6 04:50:25 PDT 2010


I wrote a small piece of sourcecode that generates stacktraces in D 2.0 under
windows. It works both with the pdb and cv debug symbol format. For Exceptions
that are derived from the Error class the trace information is automatically
appended, this causes all builtin D errors to get a stacktrace information.
The only point where this does not work is the Access Vioaltion error, as it
does not call the stacktrace callback function for some reason.

It is very easy to use, just copy the two files from the zip archive to your
root source directory and import the stacktrace module inside your main file.
For more informaiton and the download go to:
http://3d.benjamin-thaut.de

Let me know what you think.

Kind Regards
Benjamin Thaut


More information about the Digitalmars-d-announce mailing list