www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Stack tracing

reply Valry Croizier <valery freesurf.fr> writes:
Is there some way to get a call stack trace each time an exception
is thrown ?

When a contract is violated, it is quite disappointing not to be
able to locate immediatly the real mistake in my code.
Dec 17 2006
parent Charlie <charlies nowhere.com> writes:
Debugging D programs is a real concern for the language :/.

Maybe Walter will see this and incoroporate shinh's backtrace patched 
phobos, you can get it here -> http://shinh.skr.jp/d/ .

There is also a way to programmatically get the backtrace, see this post 
-> 
http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=45299.

Charlie


Val��������������������������
������ wrote:
 Is there some way to get a call stack trace each time an exception
 is thrown ?
 
 When a contract is violated, it is quite disappointing not to be
 able to locate immediatly the real mistake in my code.

Dec 17 2006