[CSI] refactoring and debugging
Mikhail Nesterenko
mikhail at cs.kent.edu
Tue Dec 8 10:51:47 EST 2020
CSIB students,
This is regarding the program refactoring (name changing) in visual
studio and compilation modes.
* Refactoring is modifying the program structure without altering its
behavior. Often refactoring is done to "clean up" or improve the
readability of the program. For example, change the name of a
variable or class to better reflect its purpose. To rename a
construct in visual studio, type ctrl+r, ctrl+r, or right-click on
the name and select Rename from the drop-down menu. Unlike more
simple search and replace option available in Edit --> Find and
Replace --> Quick Replace (Ctrl-H), variable renaming is aware of
the syntax and replaces the name only of this construct.
I added this information to the features of MSVS here:
http://www.cs.kent.edu/~mikhail/classes/csi/Labs/MSVS/features.html
* A compiled executable in release mode does not have references of
either source-code variable names or line numbers. An executable
compiled in debug mode retains these references. A compiled
executable in release mode does not have references of either
source-code variable names or line numbers. An executable compiled
in debug mode retains these references.
I expanded on this here:
http://antares.cs.kent.edu/~mikhail/classes/csi/Labs/MSVS/debugging.html
thanks,
--
Mikhail
More information about the cs13001
mailing list