[Thread Prev][Thread Next][Index]

Re: [ferret_users] printing filename and line number at error



Hi,

While we're talking about debugging Ferret/PyFerret scripts, I'd like to point out some other commands and options that have been added in the last several years -- I know it can be hard to keep up with new things. 

These are for digging into variable definitions:

SHOW VARIABLE/TREE   lists out the variable definition and dependence on other variables  (the alias for this is VTREE)

RETURN= keywords:  RETURN=status, RETURN=isReady, and RETURN=defined

https://ferret.pmel.noaa.gov/Ferret/documentation/release-notes/version-6-85-release-notes
https://ferret.pmel.noaa.gov/Ferret/documentation/release-notes/version-6-95-release-notes


On 1/27/2020 6:36 AM, Marco van Hulten wrote:
Hi—

When Ferret returns an error, is it possible to print the filename and
linenumber of the GO script?

I know how to print the filename.jnl ($0), but if it would be useful if
Ferret can tell me the name of the file and line number at any failure
of a command.

This is especially useful in my case where I am using jnl scripts that
call other jnl scripts and so on.

—Marco


[Thread Prev][Thread Next][Index]
Contact Us
Dept of Commerce / NOAA / OAR / PMEL / Ferret

Privacy Policy | Disclaimer | Accessibility Statement