[lazarus] Catch exceptions in gdb
Mattias Gaertner
nc-gaertnma at netcologne.de
Thu Jun 26 10:26:51 EDT 2003
On Thu, 26 Jun 2003 14:40:33 +0200 (W. Europe Daylight Time)
Michael Van Canneyt <michael.vancanneyt at wisa.be> wrote:
>
>
> On Thu, 26 Jun 2003, Micha Nelissen wrote:
>
> > Hi,
> >
> > How can I catch exceptions in gdb, such that it stops on the line that
> > threw it?
>
> You cannot. You must set a breakpoint on the FPC_RAISE function, and
> go 1 frame back up the stack to see where the exception is raised.
The IDE uses:
break FPC_RAISEEXCEPTION
break FPC_BREAK_ERROR
maybe this works under win32 too
Mattias
More information about the Lazarus
mailing list