Debugging Flashcards

1
Q

Five step process for debugging

A

Find the root cause.
Understand the problem.
Determine a fix.
Repair the issue.
Retest.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Defensive programming

A

is a technique whereby the programmer tries to anticipate all of the ways the software could be misused

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Watching a variable

A

allows you to inspect the value of a variable while the program is executing in debug mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly