Assigning a New Value to a Variable

Zend Studio allows you to manually add values to variables or watches, as needed. You can use this functionality to reduce iterations, force an error or test a value.

 

To Assign a New Value to a Variable:

  1. In the Variable tab, right click on a variable item and select Assign Value from the menu.
    The Assign Value dialog box appears.  

  2. Enter the new variable into the New Value box and click OK.  

 

To Assign a New Value to a Watch:

  1. In the Watches tab, right click on a variable item and select Assign Value from the menu.
    The Assign Value dialog box appears.

  2. Enter the new variable into the New Value box and click OK.  

Note:

Values can also determine the debugger's behavior by adding variables in debugger stopping points (such as in a breakpoint).

 

 

Related Links

Related Links:
Monitoring Program State

Tracking the Stack

Reviewing Variables/Assigning Values to Variables

Viewing Output in the Output Buffer

Debugging

Internal Debugger

Controlling Program Flow

Communication Tunnel