COBOL/400 Debugging

130 pts.
Tags:
*SRCDBG
COBOL/400
Hello Everyone, Can anyone explain me the exact difference between *SRCDBG and *LSTDBG? Thanks & Regards Bibin

Answer Wiki

Thanks. We'll let you know when a new response is added.

Bibin,
I use the compile option (CRTSQLCBLI) of ‘DBGVIEW *SOURCE’.
I use STRDBG, and be sure to change the following option to ‘UPDPROD *YES’ .
You can specify breakpoints, and watch variables.
Hope this helps.

************
A program compiled with the *SRCDBG option requires there to be a source file in the location from which the program was compiled in order to view and step through the source when debugging.

*LSTDBG stores a copy of the source code with the object so that the source doesn’t need to be present when the program is debugged. This is quite useful when a production program is on a different system than from where it was originally developed and/or if the source code is not distributed to the production system. Thus, we have our change management system set to compile all program objects with the *LSTDBG or *LIST options, depending on program type. Also, *LSTDBG shows the file field definitions and the copy members/copy books in the source code when debugging. This is also useful since you won’t have to scan through a different source member while debugging the object if you’re looking for something that’s not in the main program source code.

CWC
**********

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following