[fpc-pascal] FPC Debug line numbers

el es el.es.cr at gmail.com
Tue Nov 7 09:50:01 CET 2017


On 06/11/17 21:49, James Richters wrote:
> I've noticed that line numbers are sometimes off, sometimes quite a
> bit when I receive a run-time error.  I had one today, it specified
> the correct function that was responsible for generating the error,
> however the line number was way off,  it reported line 1463 but the
> entire function in question goes from line 708 to line 785.  There is
> nothing remotely related at line 1463,  it's a completely unrelated
> procedure that could not have possibly been called at the point the
> runtime error was received.    The list of procedure/function calls
> was accurate, just not the line number, which makes it very difficult
> to figure out exactly what part of the function had the problem.
> 
> I am using FPC 3.0.4rc1, compiling with the text IDE and I have
> option "Generate also backtrace line information" selected.
> 
> Does anyone know what might cause the line numbers to be incorrect?
> 
> James
> 
> 
I vaguely recall reading something to the sense of:
this could be related to the optimization level used;

I can't remember where I read that; 

-l.




More information about the fpc-pascal mailing list