Change the value in debugging mode (watch window)
How to Change the value in debugging mode (watch window)
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rahul SinghRank #1,323 · 1.3K reputationPosted Jan 20, 2015, 12:44 AM EST
Watch window is just for viewing the values and to the best of my knowledge it can't be edited in Watch window. You can anyways change it while debugging by following the below steps:-
1. The debugger must be in break mode.
2. If the variable is an array or an object, a tree control appears next to the name in the Name box. In the Name column, expand the variable, if necessary, to find the element whose value that you want to edit.
3. In the row you want to change, double-click the Value column.
4. Type the new value.
5. Press ENTER.
Ameer Basha21 reputationPosted Jan 20, 2015, 12:45 AM EST
kiran k39 reputationPosted Apr 18, 2015, 3:40 AM EDT