[fpc-pascal]Lineinfo in Debuglog
peter at freepascal.org
Fri Feb 1 07:54:47 CET 2002
> Jonas Maebe <jonas at zeus.rug.ac.be> wrote:,
> >> an FPC program compiled with -gl displays line information if an
> >> exception occours. This is realy helpful. It is possible to write this
> >> line information in a file (e.g. an debug log) instead of the screen?
> >No, at this time only the output from the heaptrc unit can be
> >redirected. The normal "crash logs" are always written to stdout.
> do you see a chance to implement this with minimal expense?
You can override the following procvar:
TBackTraceStrFunc = Function (Addr: Longint): ShortString;
This is called for every address that is printed in the back trace.
More information about the fpc-pascal