[fpc-pascal] Debug information

Rainer Stratmann RainerStratmann at t-online.de
Tue Sep 11 18:41:53 CEST 2012


Am Tuesday 11 September 2012 17:38:44 schrieb Martin:
> > But why are the lines not shown if there is only one line without info?
>
> Missing recovery in the implementation...
>
> Now this is from memory. double check it.....  I may well remember this
> wrong.
>
> Basically, if an error happens (exception) during a trace is printed,
> then this could lead to a new trace, a new error, a new trace ... a
> stackoverflow.
> So during a trace, the pointer to the trace prog, is set to the basic
> "address only" prog.
>
> Unfortunately there is no distinction between errors. So not finding a
> line is an error (IIRC it is handled the same as if dbg info is
> invalid/broken), and that is the end...

For debugging the best would be to write down as much information as possible. 
Even if it causes (eventually) more (endless) errors. Would this be possible? 
May be with a switch?



More information about the fpc-pascal mailing list