In debug mode, I can see what returned from method by moving mouse pointer to "name" variable;
public string GetUserName(int id)
{
string name = UserService.GetUserName(id);
return name;
}
But I don't want to create a variable to just to see what inside it...
So what is the proper way to debug one line returned method like;
public string GetUserName(int id)
{
return UserService.GetUserName(id);
}
*Notes
- I don't want to use F11 to get inside of GetUserName method.
- I don't want to use immediate window.