Click here to Skip to main content
14,639,515 members
Rate this:
Please Sign up or sign in to vote.
See more:
I want to edit and change a value of a variable during run time....but i am not getting it right ....Please help me out ......



Thanks in advance.....
Posted
Updated 12-Feb-12 23:41pm
v3
Rate this:
Please Sign up or sign in to vote.

Solution 3

Set a break point where your variable is used and start debugging. When execution stops at the break point, change the content of your variable in the local window and resume execution by pressing F5.
   
Comments
CPallini 13-Feb-12 6:15am
   
My 5.
Rate this:
Please Sign up or sign in to vote.

Solution 1

Stop your program using a breakpoint at the proper line and change variable value using, for instance, the QuickWatch window.
   
Comments
Jochen Arndt 13-Feb-12 5:54am
   
The answer is correct. Don't know why it has been voted with 1. Gave my 5.
CPallini 13-Feb-12 6:14am
   
Thank you.
Jonathan [Darka] 13-Feb-12 6:03am
   
Sandy, this is the correct answer.

If it's not working then either,
- You are doing it wrong, or
- You are doing it wrong...
CPallini 13-Feb-12 6:15am
   
Thank you for pointing out.
Rate this:
Please Sign up or sign in to vote.

Solution 2

I tried it but still the original value persists......
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100