From cea7c7e6beedad8a31f14e1b82416ade6bc52541 Mon Sep 17 00:00:00 2001 From: Morgan Cyrus Date: Thu, 6 Oct 2022 22:54:17 -0700 Subject: Debugging issues. --- Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 23 +++++++++++++++++---- .../Ch 5 Debugging Project.lastbuildstate | 2 +- .../Debug/Ch 5 Debugging Project.exe | Bin 53760 -> 53760 bytes .../Debug/Ch 5 Debugging Project.exe.recipe | 2 +- .../Debug/Ch 5 Debugging Project.ilk | Bin 548584 -> 531168 bytes .../Debug/Ch 5 Debugging Project.obj | Bin 82711 -> 82711 bytes .../Debug/Ch 5 Debugging Project.pdb | Bin 2109440 -> 2248704 bytes 7 files changed, 21 insertions(+), 6 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 7f5dfed..0147ef8 100644 --- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp +++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp @@ -27,20 +27,34 @@ * 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) +* 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). +* That said, I don't see any assembly code displayed. +* * 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. +* done, though upon selecting the step out tool (Shift + F11) the code appears to finish running at this point. * 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 * line. +* done * 10) Step over the next cout statement. Now look at the console * window. What was printed? +* The following was printed: +* +* You have $123.45 +* Enter percent raise: +* +* This isn't exactly what I expected though.. * 11) Select Stop Debugging either from the Debug menu or from your * toolbar. -* +*done +*/ + +/* * Debugging Exercise 2 * * 1) With the program stopped, run to Breakpoint 1 by selecting @@ -56,8 +70,9 @@ * red. This designates that the variable just changed its value. * 9) What happened to our money? I thought a raise was supposed * to increase our money? Stop debugging and fix the calculation. -* -* Debugging Exercise 3 +*/ + +/* Debugging Exercise 3 * * 1) Choose Disable All Breakpoints from the Debug menu. * 2) With the cursor on the calculation, Run to Cursor. Remember diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate index fddab47..0b9227c 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate +++ b/Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate @@ -1,2 +1,2 @@ PlatformToolSet=v143:VCToolArchitecture=Native32Bit:VCToolsVersion=14.30.30705:TargetPlatformVersion=10.0.19041.0: -Debug|Win32|C:\Users\Morgan\source\repos\cst116-lab0-debugging-radioflyer32\Ch 5 Debugging Project\| +Debug|Win32|C:\Users\Morgan\Source\Repos\cst116-lab0-debugging-radioflyer32\Ch 5 Debugging Project\| 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 80b8bc1..d215ed5 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.exe.recipe b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe.recipe index 81b38c5..9265b8b 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe.recipe +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe.recipe @@ -2,7 +2,7 @@ - C:\Users\Morgan\source\repos\cst116-lab0-debugging-radioflyer32\Ch 5 Debugging Project\Debug\Ch 5 Debugging Project.exe + C:\Users\Morgan\Source\Repos\cst116-lab0-debugging-radioflyer32\Ch 5 Debugging Project\Debug\Ch 5 Debugging Project.exe 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 30faf5a..e5e19fe 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 ed111eb..c22cf3e 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 1cb16f0..dd954d8 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