I forgot to mention that you have to have it stopped in debug, to add other program/service-programs. At least that is how I do it, when debugging a specific job...
Sort of the same way on the old Green Screen Debugger.
To add break-points on the newly added program, I have to double-click on the source, and add the break-point. And sadly, I have to step into the code once for it to work. I am probably missing some little thing. But, that is how I get it to work.
-Ken Killian-
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Justin Taylor
Sent: Tuesday, October 17, 2017 2:14 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Debug module/job
I'm with you thru #3, I do that regularly. I tried #4, but it just didn't work.
-----Original Message-----
From: Ken Killian [mailto:kkillian@xxxxxxxxxxxx]
Sent: Tuesday, October 17, 2017 12:32 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Debug module/job
Hi,
So, set up a debug job for your specific job. And then add a break-point for that module.
Inside debug, set up the debug for job:
1.) >Run>debug configuration
2.) on the "IBM i: debug job" add your job, which I assume is either currently running, as "Never-ending" job, or that you have on hold. Or optionally set up your 5250 session to debug.
Put in the job/user/number in the dialog
3.) And you should be good to go! I do that all the time...
4.) Don't forget to add programs to debug.
* While in Debug open the Program/Module view
* add the Program to also to debug. Which could be Program and/or service program. Select the correct radio button, when adding the program/service program.
Sort of hard to explain in an email, but that give you the basic idea....
Might want to explore these possible labs, if you are newbie:
http://ibm.biz/rdi_labs
http://ibm.biz/rdi_hub
-Ken Killian-
--
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:
https://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/wdsci-l.
As an Amazon Associate we earn from qualifying purchases.