[Thread Prev][Thread Next][Index]
Re: [ferret_users] printing filename and line number at error
- To: ferret_users@xxxxxxxx
- Subject: Re: [ferret_users] printing filename and line number at error
- From: "Ansley C. Manke" <ansley.b.manke@xxxxxxxx>
- Date: Tue, 28 Jan 2020 11:15:20 -0800
- Arc-authentication-results: i=2; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=JwgHoGwA; spf=pass (google.com: domain of ansley.b.manke@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=ansley.b.manke@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-authentication-results: i=1; mx.google.com; dkim=pass header.i=@noaa.gov header.s=google header.b=JwgHoGwA; spf=pass (google.com: domain of ansley.b.manke@xxxxxxxx designates 209.85.220.41 as permitted sender) smtp.mailfrom=ansley.b.manke@xxxxxxxx; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=noaa.gov
- Arc-message-signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-archive:list-help:list-post:list-id:mailing-list:precedence :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=xFajkitD8i97r7dvKCe6FmsEVuXmSSul7PUHrNlvTk4=; b=YsPYWiOrfdv8dchi2r5dn6gGElE9VxGsikWCzcd/kRMjH98mX9hdWl5/EGzDqNB2mK IZMj4/YZ4Ly8+OIbB+P3OnTw0Rg6Vf72OcR8n+fHds/hUN1Lk8jJI0Kbtwzocp/jm9AV aV88Wy/CEjxSECcwWb2WE1dPfOpqTCWMO2IDumdM53vuuqk+s3Dxl0BiasTRRRaVVGBq hZxm5D4t9rcp0xKr0NsFfnSTY7EwCkoIDDLnoNTLvcCVJ17X69K5srhn5wL8NCAvoJGs LSrFCR43Q2i/DXLLa26YiI/GZH56EL0Ep4Q859muQR9yhtZftq05f7c4SrUb7YihTABl LWvw==
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=xFajkitD8i97r7dvKCe6FmsEVuXmSSul7PUHrNlvTk4=; b=Xm56ZAOvwsX6jDalsT1W/Q3JnCDCWrb8JckccnY71P61NKHvPl3iPo0O/VgPq2Gzhm vKKgMmVXwepPpQ9qcUfgHl9TlbIXenDzsIwTOR7kKpQKKZSFWoRdrIKJn0Fm92i0MMx4 lg6Hw9pk2dsRV2lLAlxi+1wKpITsCOpVJteULtVGpHrPHxIp0CtyfiqbmNQ2FOF9Kp2A rnhOT/fyG3AalZmLzDPYfFNRGFHhdGA5cdLwILLFNqaNowsd21TxyxfWWMvkdHY69HIC lqUpuVfCt42KL0yAPVH9m7N2R7CJNyS96i0RW982Dn8zcWQqd2a3vNzgz9uPuAopMWT4 iF9w==
- Arc-seal: i=2; a=rsa-sha256; t=1580238923; cv=pass; d=google.com; s=arc-20160816; b=OiwOY8K+Gcr0HxnlIw17QW+SRjk9czI3ZUYubawtaSTJ9kpfkTylFo8A3zIiFJrHgR YOkYcaCKQAZKfje8X5jjOEI84z4a8OIuXyc5OVWQtbv2QZeqwo8TRWERoPQVrMdV8p8/ J6yF/jyJK/H9XphEUJAkrkzEdKuoAp8aY5kF52KgkvjTnapCJ8+bCRUGziDI+jZphJ/4 Zq6RQYWmKfpVSyYSCc8SGnvbQaLVNGHhl9F+qtUvCTRccsP5d+utLqWdDfUR3bVZWt2c mXM3Bo25rWRdIRc4h9Diu+ulbXjfza+8KKR/MBeQdW0EsdV2fT+XBSOekxK5Qc/IRjDg 8yzA==
- Arc-seal: i=1; a=rsa-sha256; t=1580238922; cv=none; d=google.com; s=arc-20160816; b=cWDkvyJCYjlPtV86AbJd/72R1iUOQmRbACKzTlIlXs3kN5Gek5+Z1LiFllo/AJbpQx TTfnpWN4IoulbIIsuTTq5oed1qjzdkm1A9s/qrKS+z4suK09tMUXV7l1lwAk8xd3G7hf wYnTFlhrVCNawRwMdRp/EXVfIo85sOlpS6FpkZlLngkzNiR8U7T8WTrwyZZsHXGblCtV 9f0tQuPPf5qmT4R60CejiYjwEZC5xd0tPqjK4C1bUB+nstLHTH8QWA7yqfSmJ35HHhHK yfXfTBpmv82vVij2PcHNdplBXQNeD8Nz8ZBpoCpsu2TWYGjBWM8WXRS227OI4lh1jPcq noBQ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=noaa.gov; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive; bh=xFajkitD8i97r7dvKCe6FmsEVuXmSSul7PUHrNlvTk4=; b=gwnjztWgnL+hx07tNY7vRjqLOmwp1iW99+SGzmSJWKH+oWsnd/cwVxc6vLT5eOXy2P Zb8coWs1zOYd1EtxlCuLK3ObBiQLKpVoMyMLMqaKdOI2+DUbTpgFJ/Bsxfw3nbuPQ7ff P7F1wkJmLofijJrdy/sdLJQZJfdYvEL5eKBVWUtvtxQvHI1uAkD7p9T5/7TUf8ggIXdK 8SNgFTnGb3ZJFk+OPn/O2c9QIChOeD7spwjZgyM0hmfuDNnYC9HuaT740H88sWb3q7gn X+2B6PODBZ/UKae7Zdc7rtTiBDAHwer4Dx/c2jFilRQIFGbj9r8nPBX1mmTah5nPJype oGiw==
- In-reply-to: <20200127153619.0a19cf13@gfi063209.klientdrift.uib.no>
- List-archive: <https://groups.google.com/a/noaa.gov/group/ferret_users/>
- List-help: <https://support.google.com/a/noaa.gov/bin/topic.py?topic=25838>, <mailto:ferret_users+help@noaa.gov>
- List-id: <ferret_users.noaa.gov>
- List-post: <https://groups.google.com/a/noaa.gov/group/ferret_users/post>, <mailto:ferret_users@noaa.gov>
- Mailing-list: list ferret_users@xxxxxxxx; contact ferret_users+owners@xxxxxxxx
- References: <20200127153619.0a19cf13@gfi063209.klientdrift.uib.no>
- Sender: owner-ferret_users@xxxxxxxx
- User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1
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