The Display Module Source display shows the source of an ILE program object one module at a time. The source of an ILE module object can be shown if the module object was compiled using one of the following debug view options:
The source of an OPM program can be shown if the following conditions are met:
Once you have displayed a view of a module, you may want to display a different module or see a different view of the same module (if you created the module with several different views). The ILE source debugger remembers that the last position in which the module is displayed, and displays it in the same position when a module is redisplayed. Lines that have breakpoints set are highlighted. When a breakpoint, step, or message causes the program to stop and the display to be shown, the statement where the breakpoint occurred is highlighted.
Displaying Other Modules in Your Program
You may want to set some debug options in other modules of your program. You can do this by changing the module that is shown on the Display Module Source display to specify the preferred module.
You can change the module that is shown on the Display Module Source display by using:
If you use this option with an ILE program object, the entry module with a root source, COPY, or listing view is shown (if it exists). Otherwise the first module object bound to the program object with debug data is shown. If you use this option with an OPM program object, then the source or listing view is shown (if available).
This example shows you how to change from the module shown on the Display Module Source display to another module in the same program using Display Module debug command.
Displaying a Different View of a Module
Several different views of a module are available depending on the values you specify when you create the module. They are:
This example shows you how to change the view of the module shown on the Display Module Source display.
The current view is listed at the top of the window, and the other views that are available are shown below. Each module in a program can have a different set of views available, depending on the debug options used to create it.
IBM-ILE Related Interview Questions
|IBM - RPG Interview Questions||IBM DB2 Interview Questions|
|DB2 Using SQL Interview Questions||IBM Mainframe Interview Questions|
|IBM AIX 7 Administration Interview Questions||AS400 Interview Questions|
|Automatic Storage Management (ASM) Interview Questions||Mainframe DB2 Interview Questions|
|Rpgle Interview Questions|
Introduction To The Ile C/c++ Compiler
Creating A Program
Working With Exports From Service Programs
Example - Creating A Sample Ile C Application
Running A Program
Debugging A Program
Using Stream And Record I/o Functions With Iseries Data
Using Ile C/c++ Stream Functions With The Iseries Integrated File System
Using Externally Described Files In Your Programs
Using Database Files And Distributed Data Management Files In Your Programs
Using Device Files In Your Programs
Handling Exceptions In Your Program
Using Iseries Pointers In Your Program
Using Packed Decimal Data In Your C Programs
Internationalizing Your Program
International Locale Support
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.