Jump to content
  • Advertisement
Sign in to follow this  
asdqwe

VC++ debugger question

This topic is 4094 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!