Click here to Skip to main content
15,895,817 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to know returning value of FunctionY without assigning it to variable during debugging is it possible ???
C#
public string FunctionX()
{
   return FunctionY("some parameter");
}
public bool MainFunction()
{
   if (FunctionX() == "Value")
      return true;
   else
      return false;
}
Posted

Put a breakpoint on the return statements.
Once the code stops on the breakpoints, just hover your mouse over Function() after it has executed and you will get the value.
 
Share this answer
 
1.Put Breakpoint at the starting of the functionX
2. Select FunctionY with parameters
3. right click
4. click on Quick Watch
 
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