VC++ debugger question
I'm the veriest novice in debugging- I only know how to set a breakpoint and Watch a variable; but I need to know how to Watch a function's return value.
How do I do it (in easy steps)?
basically to set a breakpoint click on the grey bar next to the line you want it to break on
to watch a variable just drag it into the watch window at the bottom
when using breakpoints if a variable is being assigned on the line you select it wont contain the contents tell after its executed so underneath this i usually do the following
int number = i;
number = number; //break on this line
to watch a variable just drag it into the watch window at the bottom
when using breakpoints if a variable is being assigned on the line you select it wont contain the contents tell after its executed so underneath this i usually do the following
int number = i;
number = number; //break on this line
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement