Native Inspect Manual (H06.04+)

Using Native Inspect
Native Inspect Manual528122-005
2-10
Control Execution
Control Execution
Notes
The next command steps execution over function, procedure, and program unit
calls
You can set a breakpoint on any source line number
Print Variables and Memory
Notes
Use the print command to print the values of variables.
Use the x command to display memory in its internal representation.
(eInspect 3,591):next
78.1 strcpy( local_buf, "Hello world" );
(eInspect 3,591):next
78.2 local_ptr2 = local_buf;
(eInspect 3,591):b 79
Breakpoint 2 at 0x700012d0:1: file \PIPPIN.$D0117.NITEST.GARTCC, line 79.
(eInspect 3,591):c
Continuing.
Breakpoint 2, main () at \PIPPIN.$D0117.NITEST.GARTCC:79
79 local_q = 0;
(eInspect 3,591):print local_ptr1
$1 = 0x80001f0 "From main"
(eInspect 3,591):print /x &local_ptr1[0]
$2 = 0x80001f0
(eInspect 7,911):print local_ptr2
$10 = 0x6ffffedc "Hello world"
(eInspect 7,911):x /4 local_ptr2
0x6ffffedc: 72 'H' 101 'e' 108 'l' 108 'l'
Note. C/C++ character pointers are automatically dereferenced.