[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Ready trace or equivalent.
From: |
john Culleton |
Subject: |
Re: [open-cobol-list] Ready trace or equivalent. |
Date: |
Sat, 16 Nov 2013 13:33:54 -0500 |
On Sat, 16 Nov 2013 17:41:36 +0000
Vincent Coen <address@hidden> wrote:
> On Saturday 16 Nov 2013 11:08:28 john Culleton
> wrote:
> > In olden times there was a handy debugging
> > command called READY TRACE which displayed
> > each paragraph name as it was reached until
> > the end of the program or RESET TRACE,
> > whichever came first. Is there an OC
> > equivalent?
> >
> > Keying in a bunch of conditional "D"
> > statements is possible, but tedious.
>
>
> Being a lazy git I just use cobc -x -g -debug
> fred.cbl etc
>
> Then when ready to run/test use:
>
> ./fred > fred.log 2> fred.err
>
> subject to what your program is doing etc, the
> trace should be in fred.err if prog uses screen
> normally omit '> fred.log '.
>
>
> Vince
>
When all else fails RTFM. I found a compile time
option -ftrace that does what I ask for the most
part. It is not that my program at this
point deliver errors. It doesn't always go to
where I think it should go.
So that problem is solved.
--
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at
http://www.booklocker.com/books/4055.html