If I breakpoint on the closing brace of a function with a return
value, can I see what the return value is at that point? How? Thanks.
Example:
bool funcA() {
return funcB();
} // breakpoint here and I want to know what funcB returned
bobbychopra@gmail.com - 21 May 2007 21:31 GMT
> If I breakpoint on the closing brace of a function with a return
> value, can I see what the return value is at that point? How? Thanks.
[quoted text clipped - 4 lines]
>
> } // breakpoint here and I want to know what funcB returned
The simplest thing I would do in this case would be something like
bool funcA() {
bool retval = funcB();
return retval;
} // breakpoint here and addwatch or hover over retval