www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - stack trace hack for recent Phobos?

reply Trass3r <mrmocool gmx.de> writes:
Is there a way to get a stacktrace when an exception occurs in recent 
Phobos versions?
Jul 16 2009
parent reply Robert Fraser <fraserofthenight gmail.com> writes:
Trass3r wrote:
 Is there a way to get a stacktrace when an exception occurs in recent 
 Phobos versions?
Windows or Unix?
Jul 16 2009
parent reply Trass3r <mrmocool gmx.de> writes:
Robert Fraser schrieb:
 Windows or Unix?
Currently I only need Windoze, but knowing the linux situation wouldn't be bad either.
Jul 16 2009
parent reply Robert Fraser <fraserofthenight gmail.com> writes:
Trass3r wrote:
 Robert Fraser schrieb:
 Windows or Unix?
Currently I only need Windoze, but knowing the linux situation wouldn't be bad either.
There's no Windows stack trace that works with the newest Phobos AFAIK, however if you're using D2, you could probably copy Tango's stacktrace pretty easily since it has no dependencies on Tango other than the runtime, and druntime is used in Phobos2.
Jul 16 2009
parent reply Trass3r <mrmocool gmx.de> writes:
Robert Fraser schrieb:
 There's no Windows stack trace that works with the newest Phobos AFAIK, 
 however if you're using D2, you could probably copy Tango's stacktrace 
 pretty easily since it has no dependencies on Tango other than the 
 runtime, and druntime is used in Phobos2.
Really? Seems pretty much code to me. Are there any plans to include a stacktrace in Phobos2?
Jul 29 2009
parent bearophile <bearophileHUGS lycos.com> writes:
Trass3r:
Are there any plans to include a stacktrace in Phobos2?<
+100 Bye, bearophile
Jul 29 2009