
 |
Chapter 7 |
 |

7.5.4 Altering Data in a Running Program
Sometimes - though rarely - it's necessary to alter data in a running program. Personally, I never 'fix' a piece of data
so I can continue a debug session. I nitpick too much, and have a need to fix every bug I run across. On the other hand,
it is useful to have this ability if you want to test how a function deals with specific arguments or return values and
don't want to alter the data you're running on, or write test code that you may have to remove later. This is especially
good for testing hard to reproduce situations that you're hypothizing may be causing your error.
The good news is that this is rather simple to achieve. Remember back in section 7.4.2 Examining Variables
where we looked at variables in the program? You may have noticed at the time, but you can simply double click on the value
section of the variable window and change the variable right there.
That's it.

