Solved

Adding a watch

Posted on 1998-07-01
8
224 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AVI wait icons for CAnimateCtrl in Visual Studio 2008 MFC 1 119
FMX StringGrid1->Canvas->FillRect Problem 3 126
IdTCPClient1->Disconnect(); not working 3 59
Dialogbox API leak? 18 80
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
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 viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

948 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now