In the code I'm working in, there are many recursive method calls that return the results of the method directly without storing it in a variable.
public bool foo()
{
return bar();
}
public bool bar()
{
return infinitMethodCalls();
}
As a result, debugging is a pain. How to determine the value returned by bar () without using the temp variable or after endless method calls?
temp variable example:
public bool foo()
{
return result = bar();
}
The code I'm working with is mostly written this way.
source
share