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 +++++++-- .../Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog | Bin 7534 -> 7090 bytes .../Debug/Ch 5 Debugging Project.exe | Bin 53760 -> 53760 bytes .../Debug/Ch 5 Debugging Project.ilk | Bin 504868 -> 548584 bytes .../Debug/Ch 5 Debugging Project.obj | Bin 82711 -> 82711 bytes .../Debug/Ch 5 Debugging Project.pdb | Bin 1789952 -> 2109440 bytes 6 files changed, 7 insertions(+), 2 deletions(-) (limited to 'Ch 5 Debugging Project') 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 diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog index aa74b90..3b85ce5 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog and b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/link.read.1.tlog differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe index 1a57f57..80b8bc1 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk index 5c43e0e..30faf5a 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj index 4d55dfc..ed111eb 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj differ diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb index e3f30b3..1cb16f0 100644 Binary files a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb and b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb differ -- cgit v1.2.3