[fpc-pascal]Debugging FPC

jonas at freepascal.org jonas at freepascal.org
Fri Aug 22 09:30:49 CEST 2003


On Fri, 22 Aug 2003, James Mills wrote:

> > An unhandled exception occurred at 0x080A33B1 :
> > List index exceeds bounds (-1)
> >   0x080A33B1
>
> Also anyone out there, I'd really like to know if the above is possible
> ... I have to find the source of this particular defect in 19,000 LOC.
> All it tells me is an index out of bounds, which could mean a number of
> things.

Load the program in gdbpas. Put a breakpoint on HandleErrorFrame (with the
command "b HANDLEERRORFRAME", caps are important). You can set command
line parameters using "set args para1 para2 ...". If not all of the
sources are in one directory, you can add directories that gdbpas has to
search sources in using "directory dir1;dir2;dir3;...".

Next, type "run". When the breakpoint is hit, type "bt" (backtrace).


Jonas





More information about the fpc-pascal mailing list