Required Parameters:
Service Program: QTEDBGS
|
The Set Debug Attribute (QteSetDebugAttribute) API is used to set the attributes of the source debug session.
The attributes of the debug session cannot be set unless the job is currently in debug mode. The job is put in debug mode by a call to the Start Source Debug (QteStartSourceDebug) API.
The *UPDPROD value on the debug attribute parameter sets the update production files attribute of the debug session.
You can use files in production libraries while you are in debug mode. To prevent database files in production libraries from being changed unintentionally, you can specify a value of *NO. Then, only files in test libraries can be opened for updating or adding new records. If you want to open database files in production libraries for updating or adding new libraries, or if you want to delete members from production physical files, you can specify *YES. The initial setting when the Start Source Debug API is issued is *NO. However, this value can be changed at any time while in debug mode.
You can use this function with the library list. In the library list for your debug job, you can place a test library before a production library. In the test library, you should have copies of the production files that might be updated by the program being debugged. Then, when the program runs, it uses the files in the test library. Therefore, production files cannot be unintentionally updated.
The *OPMSRC value on the debug attribute parameter sets the OPM source debug attribute of the debug session. It is used to enable or disable the OPM source debug support. When this support is enabled, OPM RPG, OPM COBOL, and OPM CL programs can be debugged by using the ILE debug APIs if they were compiled with the *SRCDBG or *LSTDBG option on the following CL commands:
The name of the debug session that is to be set. The value of the debug attribute must be:
The value of the attribute specified in the debug attribute parameter.
When the debug attribute parameter specifies *UPDPROD, the attribute value parameter can have one of the following values:
When the debug attribute parameter specifies *OPMSRC, the attribute value parameter can have one of the following values:
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
|
Top
| Debugger APIs
| Source Debugger APIs Source Debugger APIs and Exit Programs | Create View APIs | APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |