diff options
| author | Morgan Cyrus <[email protected]> | 2022-10-06 22:54:17 -0700 |
|---|---|---|
| committer | Morgan Cyrus <[email protected]> | 2022-10-06 22:54:17 -0700 |
| commit | cea7c7e6beedad8a31f14e1b82416ade6bc52541 (patch) | |
| tree | 70c950d020d568f3f9e2409034af84dbd82e03a6 /Ch 5 Debugging Project | |
| parent | step into testing (diff) | |
| download | cst116-ch5-debugging-cyrus-cea7c7e6beedad8a31f14e1b82416ade6bc52541.tar.xz cst116-ch5-debugging-cyrus-cea7c7e6beedad8a31f14e1b82416ade6bc52541.zip | |
Debugging issues.
Diffstat (limited to 'Ch 5 Debugging Project')
| -rw-r--r-- | Ch 5 Debugging Project/Ch 5 Debugging Project.cpp | 23 | ||||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Deb.57683855.tlog/Ch 5 Debugging Project.lastbuildstate | 2 | ||||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe | bin | 53760 -> 53760 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe.recipe | 2 | ||||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk | bin | 548584 -> 531168 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj | bin | 82711 -> 82711 bytes | |||
| -rw-r--r-- | Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb | bin | 2109440 -> 2248704 bytes |
7 files changed, 21 insertions, 6 deletions
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 Binary files differindex 80b8bc1..d215ed5 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe 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 @@ <Project>
<ProjectOutputs>
<ProjectOutput>
- <FullPath>C:\Users\Morgan\source\repos\cst116-lab0-debugging-radioflyer32\Ch 5 Debugging Project\Debug\Ch 5 Debugging Project.exe</FullPath>
+ <FullPath>C:\Users\Morgan\Source\Repos\cst116-lab0-debugging-radioflyer32\Ch 5 Debugging Project\Debug\Ch 5 Debugging Project.exe</FullPath>
</ProjectOutput>
</ProjectOutputs>
<ContentFiles />
diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk Binary files differindex 30faf5a..e5e19fe 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj Binary files differindex ed111eb..c22cf3e 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj diff --git a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb Binary files differindex 1cb16f0..dd954d8 100644 --- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb +++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb |