comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDL procedure and function names
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL procedure and function names [message #89237 is a reply to message #89235] Thu, 07 August 2014 08:53 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
On 08/07/14 11:41, cpaxson@cfa.harvard.edu wrote:
> Dear IDL Users,
>
> I would like to print out the name of the procedure or function as
> the code executes. In C I'd add a line referring to argv[0]. Is
> there an equivalent in IDL such as argv or a !System variable?

You can use the MESSAGE procedure, e.g.

pro testpro
message, 'Entered...', /informational
; do stuff
end

IDL> testpro
% TESTPRO: Entered...
IDL>

I use this in concert with a debug keyword, e.g.

pro testpro, debug=debug
if ( keyword_set(debug) ) then $
message, 'Entered...', /informational
; Do stuff
end

You can also pass an empty string.

cheers,

paulv
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Dirty resampling of irregularly spaced point data with GRID_INPUT
Next Topic: TS_SMOOTH function

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:56:56 PDT 2025

Total time taken to generate the page: 0.10846 seconds