Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

A feature is nothing more than a bug with seniority. -- Unknown source


devel / comp.lang.fortran / Re: DEBUG feature

SubjectAuthor
* DEBUG featuregah4
+* Re: DEBUG featureJohn
|`- Re: DEBUG featuregah4
`- Re: DEBUG featureRobin Vowels

1
DEBUG feature

<1875f738-7768-46c2-9a76-73ff66a71aa3n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2721&group=comp.lang.fortran#2721

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:ac8:4e85:0:b0:344:88de:992b with SMTP id 5-20020ac84e85000000b0034488de992bmr22036217qtp.293.1661302921554;
Tue, 23 Aug 2022 18:02:01 -0700 (PDT)
X-Received: by 2002:a81:f47:0:b0:31f:434b:5ee with SMTP id 68-20020a810f47000000b0031f434b05eemr29306458ywp.383.1661302921385;
Tue, 23 Aug 2022 18:02:01 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Tue, 23 Aug 2022 18:02:01 -0700 (PDT)
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:e4c4:1054:a7ab:8e2f;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:e4c4:1054:a7ab:8e2f
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1875f738-7768-46c2-9a76-73ff66a71aa3n@googlegroups.com>
Subject: DEBUG feature
From: gah4@u.washington.edu (gah4)
Injection-Date: Wed, 24 Aug 2022 01:02:01 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2178
 by: gah4 - Wed, 24 Aug 2022 01:02 UTC

As mentioned in another thread, some Fortran compilers
have a special DEBUG feature. For each program unit
(main program, subroutine, or function) before the END
statement, you can put a DEBUG statement.

Some options of the DEBUG statement itself allow for
subscript bounds checking for some or all arrays, tracing
of execution of numbered statements, and changes to the
values of some or all variables.

In addition, one can add debugging statements to be
executed at different parts of the program, with all the
statements placed in debug packets, just before the END
statement.

DEBUG
AT 10
DISPLAY X,Y,Z
END

will, just before executing statement 10 print (NAMELIST
like) the values of the indicated variables. You can put most
statements inside a debug packet, so even:

DEBUG
AT 10
GOTO 20

Even worse than a COME FROM statement, there is no sign
at either statement 10 or 20 about what it does.

More usual, you would do something like:

DEBUG
AT 10
TRACE ON
AT 20
TRACE OFF
END

so statement number tracing only happens between
those statements.

Re: DEBUG feature

<bc327b7b-ddca-4002-bbb3-5dc8c0d11b12n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2723&group=comp.lang.fortran#2723

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:6214:3006:b0:496:ad87:6784 with SMTP id ke6-20020a056214300600b00496ad876784mr22554966qvb.7.1661307589682;
Tue, 23 Aug 2022 19:19:49 -0700 (PDT)
X-Received: by 2002:a81:7cc3:0:b0:336:e83b:51fd with SMTP id
x186-20020a817cc3000000b00336e83b51fdmr28194675ywc.457.1661307589517; Tue, 23
Aug 2022 19:19:49 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Tue, 23 Aug 2022 19:19:49 -0700 (PDT)
In-Reply-To: <1875f738-7768-46c2-9a76-73ff66a71aa3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:546:300:4c20:c592:8b85:2a0f:8678;
posting-account=7tVJUQoAAACymEG6aShD5R0lhHCm_A0r
NNTP-Posting-Host: 2601:546:300:4c20:c592:8b85:2a0f:8678
References: <1875f738-7768-46c2-9a76-73ff66a71aa3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bc327b7b-ddca-4002-bbb3-5dc8c0d11b12n@googlegroups.com>
Subject: Re: DEBUG feature
From: urbanjost@comcast.net (John)
Injection-Date: Wed, 24 Aug 2022 02:19:49 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1328
 by: John - Wed, 24 Aug 2022 02:19 UTC

Wow. Thought that was long gone. It has been long enough since I used it that my memory might be tainted by time; but I remember that as the best debugging feature ever.

Re: DEBUG feature

<64cc8f67-d206-432b-b340-8b9412024111n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2724&group=comp.lang.fortran#2724

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:1925:b0:6bb:8781:e356 with SMTP id bj37-20020a05620a192500b006bb8781e356mr19316949qkb.627.1661320699005;
Tue, 23 Aug 2022 22:58:19 -0700 (PDT)
X-Received: by 2002:a05:6902:10ca:b0:671:3616:9147 with SMTP id
w10-20020a05690210ca00b0067136169147mr26716108ybu.105.1661320698804; Tue, 23
Aug 2022 22:58:18 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Tue, 23 Aug 2022 22:58:18 -0700 (PDT)
In-Reply-To: <bc327b7b-ddca-4002-bbb3-5dc8c0d11b12n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2601:602:9700:4689:7d8e:4b69:8f7a:7db3;
posting-account=gLDX1AkAAAA26M5HM-O3sVMAXdxK9FPA
NNTP-Posting-Host: 2601:602:9700:4689:7d8e:4b69:8f7a:7db3
References: <1875f738-7768-46c2-9a76-73ff66a71aa3n@googlegroups.com> <bc327b7b-ddca-4002-bbb3-5dc8c0d11b12n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <64cc8f67-d206-432b-b340-8b9412024111n@googlegroups.com>
Subject: Re: DEBUG feature
From: gah4@u.washington.edu (gah4)
Injection-Date: Wed, 24 Aug 2022 05:58:18 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1889
 by: gah4 - Wed, 24 Aug 2022 05:58 UTC

On Tuesday, August 23, 2022 at 7:19:51 PM UTC-7, John wrote:
> Wow. Thought that was long gone. It has been long enough since I used it that my
> memory might be tainted by time; but I remember that as the best debugging feature ever.

Well, Fortran G is still around, but it was only today that I looked it up for VS Fortran.

I never actually got to use VS Fortran, the newest of the Fortran compilers for
OS/360 and its descendants.

I did debug some large programs with WATFIV, which has bounds checking and
undefined variable checking always enabled. (The latter checks for all bytes
containing X'81'. It will fail for CHARACTER*1 with 'a' in it.)

Re: DEBUG feature

<953e885b-55a3-468a-a225-9624a7e771a2n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=2725&group=comp.lang.fortran#2725

  copy link   Newsgroups: comp.lang.fortran
X-Received: by 2002:a05:620a:4691:b0:6bb:297e:279 with SMTP id bq17-20020a05620a469100b006bb297e0279mr19229244qkb.35.1661322758070;
Tue, 23 Aug 2022 23:32:38 -0700 (PDT)
X-Received: by 2002:a81:bc4:0:b0:335:d19f:6607 with SMTP id
187-20020a810bc4000000b00335d19f6607mr29614652ywl.54.1661322757707; Tue, 23
Aug 2022 23:32:37 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.fortran
Date: Tue, 23 Aug 2022 23:32:37 -0700 (PDT)
In-Reply-To: <1875f738-7768-46c2-9a76-73ff66a71aa3n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=202.67.103.232; posting-account=S_MdrwoAAAD7T2pxG2e393dk6y0tc0Le
NNTP-Posting-Host: 202.67.103.232
References: <1875f738-7768-46c2-9a76-73ff66a71aa3n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <953e885b-55a3-468a-a225-9624a7e771a2n@googlegroups.com>
Subject: Re: DEBUG feature
From: robin.vowels@gmail.com (Robin Vowels)
Injection-Date: Wed, 24 Aug 2022 06:32:38 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2854
 by: Robin Vowels - Wed, 24 Aug 2022 06:32 UTC

On Wednesday, August 24, 2022 at 11:02:03 AM UTC+10, gah4 wrote:
> As mentioned in another thread, some Fortran compilers
> have a special DEBUG feature. For each program unit
> (main program, subroutine, or function) before the END
> statement, you can put a DEBUG statement.
..
From the beginning, PL/I offered subscript bounds checking,
integer decimal and binary overflow checking, floating-point overflow
checking, division by zero checking, and many others.
All with facility to recover, to print diagnostic information
such as the values of variables.
As well, there was a CHECK option in which variable names
could be included. When the value of a named variable was changed,
PL/I automatically printed the new value.
..
> Some options of the DEBUG statement itself allow for
> subscript bounds checking for some or all arrays, tracing
> of execution of numbered statements, and changes to the
> values of some or all variables.
>
> In addition, one can add debugging statements to be
> executed at different parts of the program, with all the
> statements placed in debug packets, just before the END
> statement.
>
> DEBUG
> AT 10
> DISPLAY X,Y,Z
> END
>
> will, just before executing statement 10 print (NAMELIST
> like) the values of the indicated variables. You can put most
> statements inside a debug packet, so even:
>
> DEBUG
> AT 10
> GOTO 20
>
> Even worse than a COME FROM statement, there is no sign
> at either statement 10 or 20 about what it does.
>
> More usual, you would do something like:
>
> DEBUG
> AT 10
> TRACE ON
> AT 20
> TRACE OFF
> END
>
> so statement number tracing only happens between
> those statements.

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor