Click to See Complete Forum and Search --> : Debugging C++ programs as in VB
sbasak
Nov 25th, 2002, 06:01 AM
In Visual C++ it is possible to step thru application using F10 or F11.
However, while debugging VB program, one can find
Print VariableName <Enter>
in debug window and thus examine variable value.
Is there any similar way in VC++?
Thanx.
HairyDave
Nov 25th, 2002, 06:09 AM
Yep, when in the debugger you can specify variables you wish to view using the debug windows. Use the View->Debug Windows menu to see what you can use.
You then need to write the correct variable name in the window and it will display its value(s).
Any help?
HD
sbasak
Nov 25th, 2002, 07:20 AM
yes, it helps!
However, in VB, it is possible to run a function as well in debug window like
Print SquareIt(5) <Enter>
Is the same feature available in VC++?
:p
parksie
Nov 25th, 2002, 07:23 AM
Try it and see ;)
CornedBee
Nov 25th, 2002, 05:22 PM
It is in 7, not sure about 6.
sbasak
Nov 26th, 2002, 03:20 AM
function(parametr[s]) in debug windows does print the return value!
I'm using VC++ 5 though.
CornedBee
Nov 26th, 2002, 10:22 AM
Upgrade!
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.