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
Solved

Adding a watch

Posted on 1998-07-01
8
227 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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

856 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