Solved

Adding a watch

Posted on 1998-07-01
8
229 Views
Last Modified: 2010-04-01
I have MS VC++5.0 Professional...My question is, is there any way to add a watch to a variable.  I went through the online docs that came with it, but from those i got the impression that you have to have the Enterprise Ed in order to get a simple watch.  That seemed odd to me....anyone know if I am just being dense here?
Thanks...
0
Comment
Question by:churley
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
8 Comments
 
LVL 5

Expert Comment

by:yonat
ID: 1167021
1. Select the variable.
2. Hit Shift-F9.
3. Click the "Add Watch" button.


0
 

Author Comment

by:churley
ID: 1167022
when I do that, the add watch button is grayed out and the text box says "CXX0017: Error: Symbol "n" not found"

0
 
LVL 5

Expert Comment

by:yonat
ID: 1167023
Hmmm. Are you sure your installation is OK? (If it is, just reject my answer - I have no idea what else it could be.)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 2

Accepted Solution

by:
rayb earned 50 total points
ID: 1167024
Are you trying to look at a runtime symbol or a compile time symbol.  Compile time symbols are not viewable in the watch window.

0
 
LVL 2

Expert Comment

by:rayb
ID: 1167025
Whoops, sorry.  I did not mean to propose that as an answer, just a comment.
Sorry.
0
 

Author Comment

by:churley
ID: 1167026
i am trying to look at a run time variable....
0
 
LVL 11

Expert Comment

by:alexo
ID: 1167027
Silly questions:
1. Did you compile with debug information?
2. Is your program running?  It should be stopped (e.g., on a breakpoint).
3. Is the 'n' variable in scope?
0
 
LVL 11

Expert Comment

by:alexo
ID: 1167028
>> Whoops, sorry.  I did not mean to propose that as an answer, just a comment.
All hail the mighty autograder!
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
object oriented programming comparison 5 94
DCT of  2D array using fftw in c++ 9 137
find Speed using GPS latitude & longitude 4 170
visual C++ 1 43
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question