[Issue 1001] print stack trace (in debug mode) when program die
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Feb 4 16:50:42 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=1001
--- Comment #12 from Sean Kelly <sean at invisibleduck.org> 2010-02-04 16:50:35 PST ---
Stack tracing is integrated with Throwable now, so if it's enabled it will
happen for all exceptions that are created with "new" (ie. it won't happen on
OutOfMemory). It can either be shipped as a standalone library so the user has
to link it, or it can be enabled/disabled via a code statement, something like:
Runtime.traceHandler = defaultTraceHandler; // turn on
Runtime.traceHandler = null; // turn off
The runtime property is already there, so it would just be a matter of exposing
"defaultTraceHandler".
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list