PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).

Join the forum, it's quick and easy

PMS Information Systems
Welcome to PMS Information Systems - IBM i (AS/400) Forum !!!

Get Answers for all your queries on IBM i (AS/400).
PMS Information Systems
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How can I use STRISDB and STRDBG at the same time?

Go down

How can I use STRISDB and STRDBG at the same time?  Empty How can I use STRISDB and STRDBG at the same time?

Post  maran Thu Jul 28, 2011 12:00 pm

You can't actually use the STRDBG command when the STRISDB command is active (or vice versa) because either command puts you in debug mode and neither command is allowed when the job is already in debug mode (or service mode). I've never had any success at debugging OPM programs with STRDBG so I found this technique that allows you to activate the ILE debugger while STRISDB is active.

1) Start STRISDB normally.
2) Press F21 to get a command line.
3) Enter the DSPMODSRC command. This command is part of the ILE debugger.
4) Press F14 to bring up the Work with Module List display.
5) Use option 1 to add one or more ILE programs to the list.
6) Use option 5 to display the module source of the module where you first want the ILE debugger to kick in.
7) Set a breakpoint where you first want the ILE debugger to kick in. (Unlike when you are using STRDBG, pressing F10 will NOT cause the debugger to kick in when the program is called; you MUST set a breakpoint.)
Cool If needed, use F14 to bring the Work with Module List back up and set breakpoints in other modules.
9) Press F12 to get back to the command line. Press F12 to get back to STRISDB.
10) Repeat steps 2 through 9 as needed to add and remove programs and breakpoints.

When STRISDB ends, the ILE debugger will be ended as well.
maran
maran
Admin

Posts : 442
Join date : 2009-07-24

https://pmsinformationsystem.forumotion.net

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum