it's a long time since I used Eclipse Helios, and I found some difficult in changing variable at run time during debug.
I have put a breakpoint, and when debugger stops there it shows the object I am looking for in the 'variable' panel, which appears when in debug perspective.
The value I am trying to change is a Boolean inside the object, however these are the unsuccessful tentatives I did:
don't know if it is relevant, the application I am debugging is running on an old jboss 5.1, and the debug itself is done by running jboss in debug mode, and connect trough eclipse with a debug configuration. All is installed on my localhost.
thanks
Yes u can if you have the authorization: while debugging do a doubleclick on the variable, the system'll show the name and the value of the variable, change the value and press CHANGE icon.
Press Ctrl+Shift+d or Ctrl+Shift+i on a selected variable or expression to show its value. You can also add a permanent watch on an expression/variable that will then be shown in the Expressions view when debugging is on.
Select a variable or a property of a complex object in the Debug window, press F2 or right-click and choose Set Value... from the context menu, and then specify a new value and press Enter .
Following steps worked for me:
Click on Window -> Open Perspective -> Debug
Click on Tab Variables.
Right click the variable for which you want to change the value and click on Change Value...
Set the Value as Boolean.TRUE
in the dialogue and click Ok.
You can change the value.
Right click on the variable add it to 'watch' and then while debugging go to 'Expressions View', there you can change value
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With