NonStop Development Environment for Eclipse 4.0 Debugging Supplement

NOTE: Casting a variable to a different type is supported for C/C++ applications only. Do not
attempt to use NSDEE to cast a variable to a different type in COBOL or pTAL applications. For
pTAL variables, you can cast integer variables to ASCII values by entering the print /c command
in the Native Inspect console. For example:
> print /c gstartup_message.default
$11 = {
VOL = {79 "O", 83 "S", 32 " ", 32 " "},
SUBVOL = {65 "A", 66 "B", 84 "T", 32 " "}
}
Considerations
If the application or any project it references has been compiled at optimization level 1, the
Variables view might not be able to display the values of all local variables each time your
application is suspended. For more information about variables and optimization, see “Debugging
optimized code” (page 8).
When your applications stops at a breakpoint set at a function declaration, the values of the local
variables shown in the Variables view are not accurate. However, when you step your application
to the function's first statement, the variables in the Variables view are updated with accurate
values.
Related topics
Related tasks:
“Inspecting and modifying register values” (page 35)
“Inspecting and modifying memory” (page 36)
“Specifying debugger options” (page 30)
“Debugging optimized code” (page 8)
Related reference topics:
“Debug perspective for NonStop debugging configurations” (page 39)
“Debugger tab” (page 45)
See also the C/C++ Development User Guide. (Available from the Eclipse Workbench help menu.
Select HelpHelp Contents.)
Inspecting and modifying register values
You can inspect and modify register values for NonStop Applications in the same ways that you
can inspect and modify register values in the CDT for other types of applications. For information
about inspecting and modifying register values, see the C/C++ Development User Guide. (Available
from the Eclipse Workbench help menu. Select HelpHelp Contents.) For information about register
names for NonStop TNS/E applications, see the Native Inspect Manual in the NonStop Technical
Library.
NOTE: Casting a register to a different type is supported for C/C++ applications only. Do not
attempt to cast a register to a different type in COBOL or pTAL applications.
Considerations
The Registers view displays the register values for the current program execution point. Selecting
a frame on the call stack does not cause the Registers view to display the registers for that frame.
Using the debug perspective for NonStop Applications 35