× 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.



To Robert Rogerson

If you are in STRDBG, an SEP is set using SBREAK - it has the line number, as well as a user for the job in which the program will be running. For web server CGI jobs, for example, this would be QTMHHTP1.

You can also use the green screen debugger to work with it - Bob assumed, I think, that you would be debugging in the graphical debugger - not necessarily.

I posted a 17-step way to do this - HEH! It's not so bad as it might seem. I often have to use green-screen debugger to do SEPs on customer machines, since I may not have permission to use either graphical debugger on their boxes.

You need 2 jobs - one where you STRDBG and use SBREAK, then run the program wherever it is - another job, especially. You'll get a message in your job that says another job was interrupted - there's a command there for starting a service job - you need the 2nd job for that - I usually use ATTN 1 to get the alternate session - do the STRSRVJOB there, then STRDBG again and set breakpoint the normal way - there's more to it, but that is kind of the gist.

You could try the archives, search for SBREAK - I don't remember when I posted it.

HTH
Vern

On 8/9/2012 3:37 PM, Bob P. Roche wrote:
The same way you add the SEP for the web. The SEP setup is just looking
for a program being run for a specific user from a library it doesn't care
if it's batch, web or interactive green screen. I add one to the program
pick me as the user and either choose my development library or test
library we use here. I have 2 screens, so one screen has my Client access
session running on it and the other had RDP on it. Call the program and
debug as usual.




From:
Robert Rogerson <rogersonra@xxxxxxxxx>
To:
RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>,
Date:
08/09/2012 03:33 PM
Subject:
Re: How do you debug CGIDEV2 programs
Sent by:
rpg400-l-bounces@xxxxxxxxxxxx



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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.