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 - 3971 days ago
Last viewed on: 28 Mar 2024 (5080 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: 10 years 10 months 14 days 12 hours 5 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: 10 years 10 months 14 days 10 hours 48 minutes ago

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