× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



As I just replied to Nathan, this does not set ro add an SEP. These are the old instructions for debugging a job other than your own. The problem is, you often can't know that job beforehand, especially when dealing with server jobs like CGI or QZDASOINIT or remote command jobs.

These instructions mean that you already know the job where the program will be running, which SEPs were meant to resolve.

To add an SEP in green screen, you use the SBREAK command in debug session. You then F12 out of the session and wait for a message, where the complete STRSRVJOB command string is given to you,

Then you execute it as given here in a new job, and then do the STRDBG in the new job and set the breakpoint with F6 or BREAK, at the same line number you used for SBREAK.

This is less simple than the case where you know the job to debug, but I've found a reasonable set of steps that are not onerous. RDP, of course, takes care of the heavy lifting of the STRSRVJOB and all.

My steps for doing this on green-screen are in the archives - http://archive.midrange.com/rpg400-l/201102/msg00419.html

Regards
Vern

On 8/10/2012 12:05 AM, Birgitta Hauser wrote:
If you are on green screen, execute a STRSRVJOB (Start Service Job) to
associate the appropriate HTTP job for debugging. Execute STRDBG after.
After having ended debugging, End debug (ENDDBG) and end the Service job
(ENDSRVJOB)

STRSRVJOB JOB(123456/QTMHHTTP/MYCGIJOB)
STRDBG PGM(MYCGILIB/MYCGIPGM)
... debugging
ENDDBG
ENDSRVJOB

Mit freundlichen Grüßen / Best regards

Birgitta Hauser

"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"

-----Ursprüngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] Im
Auftrag von Robert Rogerson
Gesendet: Thursday, 09.8 2012 22:33
An: RPG programming on the IBM i / System i
Betreff: Re: How do you debug CGIDEV2 programs

Bob, how do you add a SEP on the green screen?

Thanks,

Robert Rogerson
On 2012-08-09 4:22 PM, Bob P. Roche wrote:

With WDSC or RDI/RDP you can set a Service Entry Point. That's how I've
done it. You have to get the permissions right, but it works great. You can
also do that for your green screen debugging, that way you always use the
same debugging tool.




From:
"Denis Robitaille" [1]<denis_robitaille@xxxxxxxxxxxx>
To:
RPG400-L [2]<rpg400-l@xxxxxxxxxxxx>,
Date:
08/09/2012 03:17 PM
Subject:
How do you debug CGIDEV2 programs
Sent by:
[3]rpg400-l-bounces@xxxxxxxxxxxx



Hello all,

I am using CGIDEV2 to develop an RPG program that present web pages.

When I needed to debug interactive green screen program, I used STRDBG to
walk trought the code as it ran.

Does any one know of an easy way to do the same thing with a CGIDEV2
programs?

Thanks


Denis Robitaille
Directeur Service technique TI
CASCADES INC.
412 Marie Victorin
Kingsey falls(Québec) Canada J0A 1B0
T : 819 363-6130
F : 819 363-6155

References

Visible links
1. mailto:denis_robitaille@xxxxxxxxxxxx
2. mailto:rpg400-l@xxxxxxxxxxxx
3. mailto:rpg400-l-bounces@xxxxxxxxxxxx
--
This is the RPG programming on the IBM i / System i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.