Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Adding a watch

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
churley
Asked:
churley
  • 2
  • 2
  • 2
  • +1
1 Solution
 
yonatCommented:
1. Select the variable.
2. Hit Shift-F9.
3. Click the "Add Watch" button.


0
 
churleyAuthor Commented:
when I do that, the add watch button is grayed out and the text box says "CXX0017: Error: Symbol "n" not found"

0
 
yonatCommented:
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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
raybCommented:
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
 
raybCommented:
Whoops, sorry.  I did not mean to propose that as an answer, just a comment.
Sorry.
0
 
churleyAuthor Commented:
i am trying to look at a run time variable....
0
 
alexoCommented:
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
 
alexoCommented:
>> Whoops, sorry.  I did not mean to propose that as an answer, just a comment.
All hail the mighty autograder!
0

Featured Post

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!

  • 2
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now