-
Notifications
You must be signed in to change notification settings - Fork 75
Watching Variable Accesses
Once the desired variable is found, one can find the instructions (the code) that accesses the variable's value. There are two ways to do this: either one can watch for write accesses or can watch for both read and write accesses.
For example:
- I searched for variable that represents my number of lives in a video game
- I select the variable in the table and watch for write accesses by going to Variable -> Watch -> Write Accesses (or by right-clicking)
- In-game, I decrease my number of lives by falling off the stage
- An instruction popped up in the table that (in this case) subtracts my character's lives.
Once the instruction(s) that access a variable's value are found, it is up to you to decide what to do from there. In this instance I could NOP (no operation) the instructions (Variable -> NOP Variable), I could show them in the debugger, modify them in another way, or do something else.
The added instruction's description will also contain the register values before the instruction was executed for the first time. This can be useful for identifying which values were used when the instruction was encountered.
Searching
- Introduction to Searching
- Data Types
- Storing All Values
- Pointers
- Search Windows
- Pausing Targets
- Web Games
Memory
Debugging
Scripting