Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2011-10

Does Lazarus have file name and line number macros for inserting into DebugLn/WriteLn statements?

8 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Frank Church
to Vincent Snijders
Vincent Snijders wrote 12 lines
2011/10/6 Frank Church : > Does Lazarus have file name and line number macros for inserting into > DebugLn/WriteLn statements? No. But FPC has: http://www.freepascal.org/docs-html/prog/progsu38.html#x44-430001.1.38 Vincent

Thanks,

all that remains is the name of the current procedure :)

Show quoted text 6 lines
-- _______________________________________________ Lazarus mailing list 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.freepascal.org/pipermail/lazarus/attachments/20111006/6180fcac/attachment.html>

Reply by email

Frank Church
to Howard Page-Clark
Howard Page-Clark wrote 11 lines
On 06/10/11 1:12, Frank Church wrote: > all that remains is the name of the current procedure :) > 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?

Show quoted text 9 lines
H -- ______________________________**_________________ Lazarus mailing list .**freepascal.org http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<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.freepascal.org/pipermail/lazarus/attachments/20111007/0ddba33f/attachment.html>

Reply by email

Lukasz Sokol
to Frank Church: I am using 0.9.30 and it is not on the menu. Do you have an example of the syntax to be…
Frank Church wrote 12 lines
On 6 October 2011 14:14, Howard Page-Clark < <mailto:>> 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

-- Frank Church

Reply by email

Frank Church
to Lukasz Sokol
Lukasz Sokol wrote 23 lines
On 07/10/2011 11:10, Frank Church wrote: > > > On 6 October 2011 14:14, Howard Page-Clark < > <mailto:>> 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

Show quoted text 11 lines
> > -- Frank Church > -- _______________________________________________ Lazarus mailing list 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.freepascal.org/pipermail/lazarus/attachments/20111007/c3cd6008/attachment.html>

Reply by email