Oracle® Solaris Studio 12.4: IDE Quick Start Tutorial

Exit Print View

Updated: October 2014
 
 

Inspecting the State of the Application

  1. The Quote_1 application prompts you for input in the Output window. Enter a customer name after the Enter customer name: prompt.

  2. In the customer.cc file, the green program counter arrow appears on top of the breakpoint icon on the first line of the GetDiscount function.

    image:Editor window showing program counter on breakpoint
  3. Open the Call Stack window (Alt+Shift-3). The call stack shows three frames.

    image:Call Stack window
  4. Click the Variables window and note that one variable is displayed. Click the nodes to expand the structure.

    image:Variables window
  5. Click the Continue button. The GetDiscount function is executed, printing the customer discount to the Output window. Then you are prompted for input.

  6. Enter the input in response to the prompts. The program stops at the next breakpoint, the line breakpoint you set earlier. Click the Variables window and note the long list of local variables.

    image:Variables window
  7. Look at the Call Stack window and note that there is only one frame in the stack.

  8. Click Continue image:Continue button and continue entering input in response to the prompts in the Output window until the program is completed. When you enter the last input to the program, your debug session ends. To end the debug session before the execution of the program was complete, you could right-click the session in the Sessions window, and choose Finish.