This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Read/Write Variable in Source Code Using the Debug Script

Hi.

I'm just trying to learn how to use the debug script and what I want to do is to modify a variable from the source code, continue to run whatever functions the variable is involved and store a result to a log file. This process will be repeated with different variable values.

Example:

int Square (int x)
{
  x*x;
}

int z = 1;
int y = Square(z)

I'll run Square for five times (using breakset) while substituting z with 1, 2, 3, 4, and 5 in each run.
I already know how to do the logging but not the read/modify variable.

An example will be much appreciated.
TIA

0