Modifying local variables

You can also modify values of variables from the Locals window.

To modify a local variable:

  1. In the debugger Source window, set a breakpoint at the following line in the selecter( ) method of the serverMain class:

    String sql = "select name, home from xmp where
    			id=?";
    
  2. Step past this line in the execution.

  3. Open the Locals window. Select the id variable, and select Local→Modify. Alternatively, you can set the cursor on the line and press Enter.

  4. Enter a value of 2 in the text box, and click OK to confirm the new value. The id variable is set to 2 in the Locals window.

  5. From the Source window, press F5 to complete execution of the query. In the Interactive SQL Data window, an error message displays indicating that no rows were found.