Search code examples
c#visual-studio-debuggingvisual-studio-2022

Edit the value of a list item in Visual Studio while debugging?


Is this something you can't do?

You can put a breakpoint and edit an int variable value, but this you can't edit the value of a list item?


Solution

  • In addition to the "Quick Watch" answer, you can use the immediate window to change an object that is in scope (where the breakpoint is).

    enter image description here