www.digitalmars.com         C & C++   DMDScript  

D - Stack traces

reply "Daniel Yokomiso" <daniel_yokomiso yahoo.com.br> writes:
Any plans for stack traces in exceptions, specially in asserts?

Perhaps in the next release? ;)

<rant>
Right now I'm trying (again) to review deimos against the new compiler and
most of the times, when I run my tests I'm getting an error but, since
almost all my code has contracts, I know only the line of the failed
contract, not the context, it makes bug hunting very tedious.
</rant>


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.520 / Virus Database: 318 - Release Date: 18/9/2003
Sep 19 2003
next sibling parent "Matthew Wilson" <matthew stlsoft.org> writes:
Make that two keen potential strack tracers ...

"Daniel Yokomiso" <daniel_yokomiso yahoo.com.br> wrote in message
news:bkgbk0$1pk7$1 digitaldaemon.com...
 Any plans for stack traces in exceptions, specially in asserts?

 Perhaps in the next release? ;)

 <rant>
 Right now I'm trying (again) to review deimos against the new compiler and
 most of the times, when I run my tests I'm getting an error but, since
 almost all my code has contracts, I know only the line of the failed
 contract, not the context, it makes bug hunting very tedious.
 </rant>


 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.520 / Virus Database: 318 - Release Date: 18/9/2003
Sep 19 2003
prev sibling parent "Walter" <walter digitalmars.com> writes:
"Daniel Yokomiso" <daniel_yokomiso yahoo.com.br> wrote in message
news:bkgbk0$1pk7$1 digitaldaemon.com...
 Any plans for stack traces in exceptions, specially in asserts?

 Perhaps in the next release? ;)
The next release is going to be a bug fix.
 <rant>
 Right now I'm trying (again) to review deimos against the new compiler and
 most of the times, when I run my tests I'm getting an error but, since
 almost all my code has contracts, I know only the line of the failed
 contract, not the context, it makes bug hunting very tedious.
 </rant>
What to do is take phobos\dmain2.d, and remove the catch for the exceptions. Recompile. Compile your program with -g. Run under Windbg.exe, and then when it faults, load the 'calls' window, and you should see a stack trace.
Sep 26 2003