[fpc-pascal] Exception callstacks, backtracks...
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Feb 7 22:27:26 CET 2007
On 07 Feb 2007, at 22:06, m utku wrote:
> Basically I want to get a stack trace and log it when a special
> exception occurs.
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);
to dump the current call stack to standard output (or to any other
text file by replacing stdout with something else).
Jonas
More information about the fpc-pascal
mailing list