• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 263
  • Last Modified:

pass values to particular method while debugging

while debugging in jdeveloper i wanted to pass values to particular method or variables.how can i do that?
0
chaitu chaitu
Asked:
chaitu chaitu
  • 2
2 Solutions
 
petmagdyCommented:
Easy:
suppose u have function like this:

  public static void main(String[] args)
  {
    //hightlight this value and right menu
    String variable = "hello";
    echo(variable);
  }
 
  public static void echo(String value)
  {
    System.out.println(value);
  }


Select the variable (highlight it like double click on the variable to become selected) then right menu --> Watch....
A dialog will open to confirm that u selected the right expersion or variable, add it to watch, and open the watch pane, in the watch pane u will see the variable double click on it a dialog will appear asking u to enter a new variable, enter the new variable and continue debbugging

Good luck :)
0
 
petmagdyCommented:
little word collection:

>>click on it a dialog will appear asking u to enter a new variable
I mean new value
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now