[fpc-pascal] Source line numbers during execution
Vincent Snijders
vsnijders at quicknet.nl
Mon Jul 10 20:02:29 CEST 2006
ArĂ Ricardo Ody wrote:
> I've tried to make programs generated by FPC inform the line number or
> exceptions in execution time and I can't.
>
> I use fpc.cfg standard installed during Lazarus 0.9.16 installation and
> I put -CX -XX -gl after the name of the source in the FPC compilation.
>
> May someone of you tell me a step-by-step script about what I must do to
> get source line numbers with execution exception messages?
>
> Greetings from Sao Paulo - Brazil
>
(Quickly typed in the editor, so not checked by the compiler)
In LCL applications:
uses LCLProc;
...
procedure DoSomething;
begin
try
// your code here
except
DumpExceptionBackTrace;
end;
end;
Vincent
More information about the fpc-pascal
mailing list