|
-
Nov 25th, 2002, 07:01 AM
#1
Thread Starter
Fanatic Member
Debugging C++ programs as in VB
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.
Life is a one way journey, not a destination. Travel it with a smile and never regret anything.
Yesterday is history, tomorrow is a mystery, today is gift - that's why we call it present.
-
Nov 25th, 2002, 07:09 AM
#2
Addicted Member
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
-
Nov 25th, 2002, 08:20 AM
#3
Thread Starter
Fanatic Member
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++?
Life is a one way journey, not a destination. Travel it with a smile and never regret anything.
Yesterday is history, tomorrow is a mystery, today is gift - that's why we call it present.
-
Nov 25th, 2002, 08:23 AM
#4
Monday Morning Lunatic
Try it and see
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Nov 25th, 2002, 06:22 PM
#5
It is in 7, not sure about 6.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Nov 26th, 2002, 04:20 AM
#6
Thread Starter
Fanatic Member
function(parametr[s]) in debug windows does print the return value!
I'm using VC++ 5 though.
Life is a one way journey, not a destination. Travel it with a smile and never regret anything.
Yesterday is history, tomorrow is a mystery, today is gift - that's why we call it present.
-
Nov 26th, 2002, 11:22 AM
#7
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|