Re: Line number for debugging
From: John Leavey (johnl_at_NO_SPAM.compufile.co.uk)
Date: 11/10/03
- Next message: Clay Shannon: "Re: Re: Re: Freeing a TList object and its Items"
- Previous message: Russ Holcomb: "Re: All I want to do"
- In reply to: Pascal Boivin: "Line number for debugging"
- Next in thread: David Knaack: "Re: Line number for debugging"
- Reply: David Knaack: "Re: Line number for debugging"
- Reply: Marc Rohloff: "Re: Line number for debugging"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 10 Nov 2003 14:47:56 +0000
On Mon, 10 Nov 2003 09:35:19 -0500, "Pascal Boivin" <pboivin@nbautomation.com> wrote:
>Hi
>
>In C++, I was using
>#define TRACEPROC() TraceProcedure(__FILE__, __FUNC__, __LINE__ + 1)
>to save the current position in the source into global variables. When a
>exception occurs, I was showing those values to help me find the problem.
>
>Is there something equivalent in Delphi?
The easiest way in Delphi requires the building of detailed .map files.
See http://www.undu.com/Articles/010729d.html for an article and sample code on how to use
this map file in an exception handler to display routine name and line number.
John Leavey
- Next message: Clay Shannon: "Re: Re: Re: Freeing a TList object and its Items"
- Previous message: Russ Holcomb: "Re: All I want to do"
- In reply to: Pascal Boivin: "Line number for debugging"
- Next in thread: David Knaack: "Re: Line number for debugging"
- Reply: David Knaack: "Re: Line number for debugging"
- Reply: Marc Rohloff: "Re: Line number for debugging"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|