[Lazarus] Does Lazarus have file name and line number macros for inserting into DebugLn/WriteLn statements?
Frank Church
vfclists at gmail.com
Fri Oct 7 15:16:33 CEST 2011
On 7 October 2011 13:16, Lukasz Sokol <el.es.cr at gmail.com> wrote:
> On 07/10/2011 11:10, Frank Church wrote:
> >
> >
> > On 6 October 2011 14:14, Howard Page-Clark <hdpc at talktalk.net
> > <mailto:hdpc at talktalk.net>> wrote:
>
> > There is already $ProcedureName() you can use in a code template (see
> > Tools->Code Templates).
> >
> >
> > I am using 0.9.30 and it is not on the menu. Do you have an example
> > of the syntax to be used in source code?
> >
>
> On my Lazarus therre is Environment -> Code Templates, but yes there is no
> $ProcedureName() in the default Lazarus.dci
> (C:\lazarus\ide\lazarus_dci_file.dci,
> as installed from the zipped installer) - d+[Ctrl+j] expands to
> debugln(['test ']);
>
> Lukasz
>
>
I have tried Vincent's suggestion and it is working, I get
TObjectType.ProcedureName
> >
> > -- Frank Church
> >
>
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
--
Frank Church
=======================
http://devblog.brahmancreations.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20111007/c3cd6008/attachment-0003.html>
More information about the Lazarus
mailing list