Re: Line number for debugging
From: David Knaack (davidknaack_at_cox.net)
Date: 11/10/03
- Next message: Stephan St-Denis: "Re: File from Internet"
- Previous message: John Leavey: "Re: Re: swapping variables"
- In reply to: John Leavey: "Re: Line number for debugging"
- Next in thread: Marc Rohloff: "Re: Line number for debugging"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 10 Nov 2003 09:23:54 -0600
John Leavey wrote:
> On Mon, 10 Nov 2003 09:35:19 -0500, "Pascal Boivin" <pboivin@nbautomation.com> wrote:
>>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.
The other option I've heard of, but never seen, is to define an
OpenToolsAPI virtual file system that modifies the source that is fed to
the compiler, changing macro defs into the current line number or date
or whatever.
DK
- Next message: Stephan St-Denis: "Re: File from Internet"
- Previous message: John Leavey: "Re: Re: swapping variables"
- In reply to: John Leavey: "Re: Line number for debugging"
- Next in thread: Marc Rohloff: "Re: Line number for debugging"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|