From 03df225be065eec67a64aab12abc3b79e9f80ddb Mon Sep 17 00:00:00 2001 From: Morgan Cyrus Date: Wed, 12 Oct 2022 21:07:49 -0700 Subject: done with step 7 --- CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp') diff --git a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp index b5b3305..3adcc8d 100644 --- a/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp +++ b/CST116-Ch8-Debugging/CST116-Ch8-Debugging.cpp @@ -14,13 +14,24 @@ * done * * 2) Run to Breakpoint 1. +* done +* * 3) Place a watch on i. +* done +* * 4) Execute the while statement by doing a "Step Into". +* done +* * 5) The execution continues to the cout statement as expected. * 6) Step over the cout statement. +* done +* * 7) Why didn't the flow of the program return back to the while * statement? +* the while says while I is less than 0. Since i == 0, the while loop ends (i is 0, not less than 0) +* * 8) Fix this problem by removing the ; after the while statement. +* * 9) Stop debugging and repeat Steps 2 – 5 to verify the correction * worked. * 10) Stop debugging. -- cgit v1.2.3