Exception Handling

sleek cslush at gmail.com
Thu Aug 28 18:04:41 PDT 2008


After considering this for a few hours, I think ddbg is my best bet here. 
Quite honestly, I should only be catching known exceptions. Anything else 
that occurs that is unexpected should absolutely bubble up and out.


"Jarrett Billingsley" <kb3ctd2 at yahoo.com> wrote in message 
news:g95d2h$1ojq$1 at digitalmars.com...
> "sleek" <cslush at gmail.com> wrote in message 
> news:g94qsm$t5$1 at digitalmars.com...
>> Is there an easy way to get a stack trace when an exception is caught?
>>
>
> On Windows, you can run your program in ddbg, and it will print out a 
> stack trace when you get an exception (segfaults/stack overflows included) 
> as long as you compiled your program with debug symbols (-g).
>
> You can get it here: http://ddbg.mainia.de/releases.html
>
> You just use
>
> ddbg -cmd="r" myprog.exe
>
> on the commandline to load your program and immediately start running it.
>
> On linux... yeah I don't know.
> 




More information about the Digitalmars-d-learn mailing list