In Visual Studio 2013 how i can find out the value returned by a method which is not being stored anywhere.
Lets assume the methods are in a DLL which i don't have the source code so i cannot set a break point at the return line.
Example Use Case 1:
if(GetEnumResponse() == MyEnums.MyValue)
{
// Do Stuff
}
Example Use Case 2:
var Response = (MyResponse)GetResponse();
In example 1, if im expecting the condition to be true but it is false, how can i use the debugger to find out what the result of GetEnumResponse() is?
In example 2, if the cast is causing an invalid cast exception how can i view what the result of GetResponse() is?