Difference between revisions of "STRDBG"

From MidrangeWiki
Jump to: navigation, search
m (link typo)
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
  
 
STRDBG starts the standard debugger.
 
STRDBG starts the standard debugger.
 +
An alternative debugger is called the [[System Debugger]].  It is a Java application.
 +
Also, [[RDp]] has n interactive debugging facility called the [[WDSC_tips/DEBUG|System Entry Point]] debugger.
  
 
== Debug tips ==
 
== Debug tips ==
*Seeing more than 1024 bytes of a character field, DS or array.
+
*Unreferenced fields show blanks. 
EVal Field :c number_of_bytes
+
**In RPG H specification, set DEBUG(*YES) or DEBUG(*INPUT)
*Seeing the hex values of fields.
+
*Seeing more than 1024 bytes of a character field, DS or array.  
EVal Field :x number_of_hex_pairs
+
**EVal Field :c number_of_bytes
*Positioning quickly to break points.  This only finds break point line.
+
*Seeing the hex values of fields.
Next, Previous
+
**EVal Field :x number_of_hex_pairs
 +
*Positioning quickly to break points.  This only finds break point line.
 +
**Next, Previous
 
*Positioning to the next statement that can have a break point set
 
*Positioning to the next statement that can have a break point set
F6 from the top of the source positions to the first F-specs
+
**F6 from the top of the source positions to the first F-specs
F6 from the D-specs positions to the first I-spesc or C-specs if no I-specs.
+
**F6 from the D-specs positions to the first I-spesc or C-specs if no I-specs.
  Note: remember to remove the break point set, if its not what you wanted.
+
**Note: remember to remove the break point set, if its not what you wanted.
 
 
  
 
== Debugging other jobs ==
 
== Debugging other jobs ==
 
Usually called service debugging.  You need to start the other job in service mode with [[STRSRVJOB]].  Run then STRDBG over the program.  Be prepared to watch the screen flash if you step through code.  The job to be service must be active in the system in order to use [[STRSRVJOB]].
 
Usually called service debugging.  You need to start the other job in service mode with [[STRSRVJOB]].  Run then STRDBG over the program.  Be prepared to watch the screen flash if you step through code.  The job to be service must be active in the system in order to use [[STRSRVJOB]].

Latest revision as of 21:07, 11 February 2011


STRDBG starts the standard debugger. An alternative debugger is called the System Debugger. It is a Java application. Also, RDp has n interactive debugging facility called the System Entry Point debugger.

Debug tips

  • Unreferenced fields show blanks.
    • In RPG H specification, set DEBUG(*YES) or DEBUG(*INPUT)
  • Seeing more than 1024 bytes of a character field, DS or array.
    • EVal Field :c number_of_bytes
  • Seeing the hex values of fields.
    • EVal Field :x number_of_hex_pairs
  • Positioning quickly to break points. This only finds break point line.
    • Next, Previous
  • Positioning to the next statement that can have a break point set
    • F6 from the top of the source positions to the first F-specs
    • F6 from the D-specs positions to the first I-spesc or C-specs if no I-specs.
    • Note: remember to remove the break point set, if its not what you wanted.

Debugging other jobs

Usually called service debugging. You need to start the other job in service mode with STRSRVJOB. Run then STRDBG over the program. Be prepared to watch the screen flash if you step through code. The job to be service must be active in the system in order to use STRSRVJOB.