aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMorgan Cyrus <[email protected]>2022-10-07 20:55:12 -0700
committerMorgan Cyrus <[email protected]>2022-10-07 20:55:12 -0700
commit8e40987f18248f31c834042c1bc487ce643b1219 (patch)
tree2d55f978e21f8ba12fc5c032414186bb0481922b
parentDebugging issues. (diff)
downloadcst116-ch5-debugging-cyrus-8e40987f18248f31c834042c1bc487ce643b1219.tar.xz
cst116-ch5-debugging-cyrus-8e40987f18248f31c834042c1bc487ce643b1219.zip
Finished Exercise 2 Step 8
-rw-r--r--Ch 5 Debugging Project/Ch 5 Debugging Project.cpp18
-rw-r--r--Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exebin53760 -> 53760 bytes
-rw-r--r--Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilkbin531168 -> 548584 bytes
-rw-r--r--Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.objbin82711 -> 82711 bytes
-rw-r--r--Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdbbin2248704 -> 2330624 bytes
5 files changed, 17 insertions, 1 deletions
diff --git a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
index 0147ef8..0f43db8 100644
--- a/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
+++ b/Ch 5 Debugging Project/Ch 5 Debugging Project.cpp
@@ -48,7 +48,8 @@
* You have $123.45
* Enter percent raise:
*
-* This isn't exactly what I expected though..
+* This isn't exactly what I expected though.. The Step Out tool doesn't seem to be stepping back and instead goes to the next cout.
+*
* 11) Select Stop Debugging either from the Debug menu or from your
* toolbar.
*done
@@ -59,15 +60,30 @@
*
* 1) With the program stopped, run to Breakpoint 1 by selecting
* the Start Debugging menu option, toolbar icon or press F5.
+* done
+*
* 2) Step over the cout.
+* done
+*
* 3) Step over the cin. Notice that you can now enter a value.
+* done
+*
* 4) Enter the value .1 and press enter.
+* done
+*
* 5) Notice that the current line of execution is now at the
* calculation.
+* done
+*
* 6) Look at your watch. What is the value of money?
+* 123.449997
+*
* 7) Hover your mouse pointer over raise. What is its value?
+* .100000001
+*
* 8) Step over the calculation. Notice the watch on money is now
* 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.
*/
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 d215ed5..2aebc04 100644
--- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe
+++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.exe
Binary files 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 e5e19fe..09d2574 100644
--- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk
+++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.ilk
Binary files 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 c22cf3e..1cebfa1 100644
--- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj
+++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.obj
Binary files 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 dd954d8..743653d 100644
--- a/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb
+++ b/Ch 5 Debugging Project/Debug/Ch 5 Debugging Project.pdb
Binary files differ