• Advertisement

Archived

This topic is now archived and is closed to further replies.

This topic is 6314 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

In VC++ is there a way I can use a debuger to view variables, and the changes of variables as I go through the program? If so..HOw?? thanx in advance

Share this post


Link to post
Share on other sites
Advertisement
Yes. From the Build menu, choose ''Start Debug'' and you''ll get a pop-up menu. Choose ''Go'' to execute the program or ''Step Into'' to stop at the WinMain function. You can set breakpoints (points where the debugger interrupts the program) by pressing F9 on the line where you want to set a breakpoint. Once in the debugger, use View/Debug Windows to display various information (variables, registers, call stack, etc.). You can step through the code from the Debug menu (Step Over, etc.).

All this is in the MSDN documentation, but that should get you started...

Dave

Share this post


Link to post
Share on other sites

  • Advertisement