From 8f9339ad23704287bfca86d6fb3df73d305f0b0e Mon Sep 17 00:00:00 2001 From: Morgan Cyrus Date: Thu, 6 Oct 2022 22:28:05 -0700 Subject: step into testing --- Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Ch 5 Debugging Project/Ch 5 Debugging Project.cpp') diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp index 8f3a852..7f5dfed 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -1,7 +1,7 @@ /* * Morgan Cyrus * CST116 01P -* Lab0 Debugging +* Lab0/CH5 Debugging */ /******************************************************************** @@ -16,17 +16,22 @@ * done * 2) With the program not in debugging mode, start debugging by * using the "Step Into" tool. -* +* done * 3) Click on the Watch1 tab. +* done * 4) With the cursor in the Name column type money and press enter. * This adds a programmer defined watch on the variable money. +* done * 5) Step Into until you reach the first cout statement. With * the current line being that cout statement, Step Into again. +* done * 6) What happened? Where are we now? What is all of this nasty * looking code? +* We are on line 84. the value of 'money' is about to be printed (123.449997 is the assigned value, though it will print 123.45) * 7) Remember, stepping into a predefined routine takes you to the * code for that routine. If the debugger can't find the code it * will show the assembly code for that routine. +* done, though I did not see the assembly code pop up anywhere. * 8) How do we get out of this mess? Use the "Step Out" tool. * 9) In Visual Studio you will be taken back to the same cout * statement. Use the Step Over tool to take you to the next -- cgit v1.2.3