VS2005: see return value?

  • Thread starter Thread starter not_a_commie
  • Start date Start date
N

not_a_commie

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
 
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

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top