Midrange News for the IBM i Community


Posted by: Darren Salvis
View source in STRDBG using Static Binding method
has no ratings.
Published: 14 May 2013
Revised: 14 May 2013 - 1674 days ago
Last viewed on: 12 Dec 2017 (2967 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

View source in STRDBG using Static Binding method Published by: Darren Salvis on 14 May 2013 view comments(2)

Hello,  I am new to midrange forum.  I have question about viewing my source code in STRDBG command.   I compiled one module (PROCTOUPP) using CRTRPGMOD or option 15 in STRPDM.   Then I bound it to my program, assign10v4 (RPGLE) using CRTPGM command, adding that module to this command.   My module has h spec NOMAIN keyword. 

My question to you is this,  how can I view my source code when I use STRDBG on my compiled program (using CRTPGM)?  I can't view my source code.  Is there something I missed?  Something I need to set before I use STRDBG?  I know how to compile a single ILE RPG IV program and view it's source code using STRDBG (without modules).

 

Can you please help me out? Any suggestions?

 

 

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: View source in STRDBG using Static Binding method
Posted: 4 years 7 months 17 hours 58 minutes ago

When you use CRTRPGMOD, specify DBGVIEW(*SOURCE) and you will be able to view the source and use the source-level debugger. Also, Using shift+F2 while in Debug will give you a list of Modules to select from. The one you select will be the one whose source is displayed. From there you can set break points.

 

Posted by: dsalvis
Premium member *
Comment on: View source in STRDBG using Static Binding method
Posted: 4 years 7 months 16 hours 42 minutes ago

Thank you, Bob,  that worked! :)  I appreciate your help.