[fpc-pascal] Question on exceptions

Jonas Maebe jonas.maebe at elis.ugent.be
Mon Aug 25 10:19:12 CEST 2008


On 25 Aug 2008, at 04:37, John Youngquist wrote:

> When you enable things like range checking. How do you identify
> when an exception has occurred and what it means?

Compile the program with -gl (and all of its units with -g or -gl) to  
see source information next to the addresses. If that does not work (- 
gl is not supported for all combinations of debug information and  
target platforms), run the program in a debugger, set a breakpoint on  
FPC_BREAK_ERROR, run, and perform a backtrace when the breakpoint is  
hit.


Jonas



More information about the fpc-pascal mailing list