[fpc-pascal] Re: Exception callstacks, backtracks...
    Luiz Americo 
    pascalive at bol.com.br
       
    Thu Feb  8 03:20:21 CET 2007
    
    
  
m utku escreveu:
> Jonas Maebe <jonas.maebe at ...> writes:
> > There's
> >
> > Procedure Dump_Stack(var f : text;bp:pointer);
> >
> > in the system unit. You can use it like this:
> >
> >    dump_stack(stdout,get_frame);
> >
>
> This cleared a lot on my mind, thanks Jonas...
>
> Recently I have tried this:
> //------------------------------------------------------
> try
>    AFunctionThatWillRaiseAnExceptionDeepInside;
> except
>    Dump_Stack(stdout, ExceptAddr);
> end;
> //------------------------------------------------------
>
> Unfortunately this did not do what I thought: giving the callstack 
> from the
> point of where exception occured. Is there any way for that?
>
Multilog also provides a SendException method that will give the 
exception stack frame along other info
Luiz
    
    
More information about the fpc-pascal
mailing list