[fpc-pascal]RE: Debugging FPC
Peter Vreman
peter at freepascal.org
Fri Aug 22 08:23:02 CEST 2003
>> With compile modes: -gg -gl
>> Aren't line info and tracebacks suppose to be shown,
>> the above example does not show these.
>
> I think the problem comes with using exceptions. Normally, if a
> run-time error occurs, the default exit proc will print the line
> number info to stdout. But if an exception traps the error before
> the program exits, then that information is absorbed by the
> exception handler, and never makes it to the exit proc.
The line info printing (-gl) does not use exitproc. It hooks an internal
procvar that is used for printing backtraces.
More information about the fpc-pascal
mailing list