Solved

Adding a watch

Posted on 1998-07-01
8
228 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
  • 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

749 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