Debugging Flashcards
1
Q
Five step process for debugging
A
Find the root cause.
Understand the problem.
Determine a fix.
Repair the issue.
Retest.
2
Q
Defensive programming
A
is a technique whereby the programmer tries to anticipate all of the ways the software could be misused
3
Q
Debugging: set next statement command
A
allows us to change the point of execution to some other statement (sometimes informally called jumping). This can be used to jump the point of execution forwards and skip some code that would otherwise execute, or backwards and have something that already executed run again
4
Q
Watching a variable
A
allows you to inspect the value of a variable while the program is executing in debug mode