Re: debug environment for NCL?

From: Sam McClatchie (NOAA Federal) <sam.mcclatchie_at_nyahnyahspammersnyahnyah>
Date: Fri Jun 14 2013 - 11:09:51 MDT

On 06/14/2013 10:00 AM, Adam Phillips wrote:
> Hi Sam,
> I think you want to use the exit statement:
> I use this all the time when debugging to stop scripts at a particular
> place after I use
> print or printVarSummary.
> If I'm off on what you are after let me (+ncl-talk) know..
> Adam

NCAR/Climate and Global Dynamics Division (303) 497-1726
P.O. Box 3000
Boulder, CO 80307-3000

Thanks Adam -- I do use the exit statement to stop a script, but as soon
as you exit, unless I misunderstand, you are no longer in the workspace
environment and the temporary variables are no longer available to work
with. I can use print commands in the script before exit, but is more
cumbersome than examining variables in a workspace of a halted script.
For example it might occur to me after examining a variable that I
printed, that I should look at a couple of other variables that I did
not explicitly print.


Sam McClatchie,
Supervisory oceanographer, Fisheries oceanography
Southwest Fisheries Science Center, NOAA,
8901 La Jolla Shores Dr.
La Jolla, CA 92037-1509, U.S.A.
email <>
Office: 858 546 7083, Cellular:  858 752 8495
Research home page <>
                 //// \\\\
               /////  \\\\\\
   >><(((>   ...>><xX(>O<)Xx><<

ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Fri Jun 14 11:10:03 2013

This archive was generated by hypermail 2.1.8 : Mon Jun 24 2013 - 11:46:47 MDT