debug
-
- New User
- Posts: 4
- Joined: Thu Aug 05, 2010 8:16 am
- First Name: John
- Last Name: Green
- Company Name: Auction Software
- Phone: 931-680-7427
- Address 1: 221 Highland Circle
- City: Shelbyville
- State / Province: Tennessee
- Zip / Postal Code: 37160
- Country: United States
- Contact:
debug
Is there a way to put an RPG program in debug mode?
-
- Profound User
- Posts: 31
- Joined: Fri Aug 06, 2010 5:18 am
- First Name: Thorsten
- Last Name: Haas
- Company Name: GfK Entertainment
- Phone: +49(0)7221/279 921
- City: Baden-Baden
- State / Province: Outside Canada/USA
- Zip / Postal Code: 76530
- Country: Germany
- Location: Germany
- Contact:
Re: debug
If I understood you correct and you wish to debug a "browser session"
you could start a service job (STRSRVJOB) and than as usual start the debug (STRDBG) from the iSeries.
See here: http://profoundlogic.com/forums/phpbb3/ ... f=54&t=440
you could start a service job (STRSRVJOB) and than as usual start the debug (STRDBG) from the iSeries.
See here: http://profoundlogic.com/forums/phpbb3/ ... f=54&t=440
- David
- Profound Logic Staff Member
- Posts: 690
- Joined: Fri Jan 04, 2008 12:11 pm
- First Name: David
- Last Name: Russo
- Company Name: Profound Logic Software
- Contact:
Re: debug
Yes, the referenced post is applicable. You need to use STRSRVJOB to use the source debugger as your application runs in a separate batch job.
An easy way to do this is to launch your Profound UI session like this:
For signed in sessions:
http://yourAS400:8080/profoundui/start.html?debug=1
For anonymous sessions:
http://yourAS400:8080/profoundui/start. ... gm&debug=1
The "debug" parameter name is case sensitive and should be given in lower case. When you launch a session in this way, you'll see that the job for the application is stopped in MSGW status. If you look at the message it contains the job name/user/number values needed for STRSRVJOB. After running STRSRVJOB and STRDBG, you can reply to the message with 'G' to let the job run.
Alternatively, you could just grab the values from a running job using "Work with Job", if you know which one you are dealing with.
An easy way to do this is to launch your Profound UI session like this:
For signed in sessions:
http://yourAS400:8080/profoundui/start.html?debug=1
For anonymous sessions:
http://yourAS400:8080/profoundui/start. ... gm&debug=1
The "debug" parameter name is case sensitive and should be given in lower case. When you launch a session in this way, you'll see that the job for the application is stopped in MSGW status. If you look at the message it contains the job name/user/number values needed for STRSRVJOB. After running STRSRVJOB and STRDBG, you can reply to the message with 'G' to let the job run.
Alternatively, you could just grab the values from a running job using "Work with Job", if you know which one you are dealing with.
Who is online
Users browsing this forum: No registered users and 2 guests