RPG debugging question
Last Post 24 Jan 2013 05:07 PM by Rocky Marquiss. 3 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
gregwga50
Advanced Member
Advanced Member
Posts:472

--
24 Jan 2013 02:37 PM

Whenever I am debugging and RPG with the green screen debugger and I am looking at the compile listing for the same program while I am doing it, I can never get the sequence numbers to match up. This appears to be because the compiler assigns sequence numbers to the I/O fields on the compile listing and the debugger does not show the I/O fields.

Anyway around this that you know of?

 

 

JJ Dahlheimer
Advanced Member
Advanced Member
Posts:626

--
24 Jan 2013 02:52 PM
I think you want *SRCSTMT on your compile options.

I have H Option(*SrcStmt:*NoDebugIO) at the beginning of all my programs. Keeps all the line numbers the same.
Scott Mildenberger
New Member
New Member
Posts:66

--
24 Jan 2013 02:52 PM
Put this on a H spec:

h Option(*SrcStmt)
Rocky Marquiss
Senior Member
Senior Member
Posts:2906

--
24 Jan 2013 05:07 PM
I compile my ILE with DBGVIEW(*ALL) - the OPM (RPG/400) with OPTION(*LSTDBG)

When I use debug with ILE it shows the source as I step through it - with RPG/400 I have to specify OPMSRC(*YES) on my STRDBG command...

Since my source is on the screen as I debug - there's no need to look at a compile listing - it's faster and easier.
You are not authorized to post a reply.

Acceptable Use Policy