Re: Figuring out which functions and procedures get called [message #33661 is a reply to message #33658] |
Fri, 10 January 2003 12:46  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
K Banerjee (kbanerjee@ucwphilly.rr.com) writes:
> I need to figure out which functions and procedures get called
> when using a particular IDL procedure. Is there some straight
> forward way to do this in IDL?
Why do I have a bad feeling about answering this question? :-(
OK, two ideas come immediately to mind.
1. Read the darn thing. Most well-written IDL procedures
are less than 100,000 lines long. :-)
2. Start IDL and compile the procedure in question. Then
type "Resolve_All". Now you have a list of all the
*user* IDL routines the procedure calls. Add to that
any of the system routines it calls (may have to read
it after all), and you have the list.
If you wanted to find out which of several identically named
procedures were called by this routine, you could upgrade
to IDL 5.4 and use File_Which. Or, if you just wanted to find
out which user routines were used in a program, you could type
Help, /Source.
Maybe that gives you some ideas.
Cheers,
David
P.S. Let's just say I'm afraid to ask *why* you need this
information. :-)
--
David W. Fanning, Ph.D.
Fanning Software Consulting, Inc.
Phone: 970-221-0438, E-mail: david@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
|
|
|