On Sun, 28 Oct 2007 13:48:18 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Anybody know how I can programmatically create a backtrace from
> within my code?
> 
> For example:
>  If I want a backtrace at a certain point in my code, I raise and
> exception.  Run the program through GDB, break at fpc exceptions and
> then ask GDB for a backtrace.
> 
> Could I ask FPC to output a backtrace directly by changing the 'raise
> Exception.Create(...)' line with something else?

see for example LCLProc DumpStack

Mattias

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to