I've seen this behavior before.
I think the problem is that you have an open dialog box indicating something like "Program has terminated"... If you do not click OK on that dialog box before the program invokes again, the SEP is not re-activated.
There are some quirks with the debugger loosing track (usually only during an abnormal end to the program). I will say that I was very critical of it at first (much like you)... but once you use it for a while, you'll wonder how you ever did without it.
I was just down in our warehouse running the green-screen debugger... it was like I never knew how to use it before.
Greg
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Dan
Sent: Thursday, November 03, 2016 2:27 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Newbie: debug a program running in batch
There was no recompile between the two calls to PGMA. I set the SEP before I started the job that called PGMA. As evidenced by the fact that the debugger "caught" the first call, the library list and user ID were correct. I am using RDi 9.5.0.3.
It took me 5 minutes to use the green-screen debugger and find the problem in my source code.
- Dan
On Thu, Nov 3, 2016 at 2:14 PM, Tyler, Matt <matt.tyler@xxxxxxxxxxxxxx>
wrote:
It would be helpful to know what happens between these steps, "It
appears that the first call to PGMA is "caught" by the debugger" and
"but subsequent calls to PGMA in the same CL". SEPs cannot monitor
for any changes that occur to the program object. So if you happen to
recompile the code after setting the SEP you have to refresh the SEP entry to get the
debugger to start up again. Also, the debugger used to not allow you to
set the SEP after you have activated the program once in a job.
I only mention this because at RDi 9.5.1.0 APAR SE65785, I have yet to see
behavior like this. I also have RDi installed as a local user copy and
not in the Program Files, so that might make a difference as well.
Thanks, Matt
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.