Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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

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.
 
Share this answer
 
Comments
CPallini 13-Feb-12 6:15am    
My 5.
Stop your program using a breakpoint at the proper line and change variable value using, for instance, the QuickWatch window.
 
Share this answer
 
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.
I tried it but still the original value persists......
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900