When I'm debugging, I often have to deal with methods that does not use an intermediate variable to store the return value :
private int myMethod_1()
{
return 12;
}
private int myMethod_2()
{
return someCall( someValue );
}
Well, in order to recreate a bug, I often have to change values on the fly. Here, I could want to see what happens when myMethode_1
return zero. Same thing for myMethod_2
.
Is there a way to do that without modifying the code ? What I would like to do, it's to place a breakpoint on the return line (or on the closing bracket) and type-in a new return value.
Note : I'm using Visual Studio 2005 and Visual Studio 2008.
Thank !