Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Studio
  4. Variable Watch Missing

Variable Watch Missing

Scheduled Pinned Locked Moved Visual Studio
debugginghelpcsharpc++visual-studio
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rockman X7
    wrote on last edited by
    #1

    Helo all! I just wondering... Why the debugger is quite annoying to me... Firstly, I'm using the VS.NET 2005 Prof, and I test the debugging in C++ code. When I test this code through debug /////////////////////////////////////////////////////////// int searchString( string data, char key ) //this function is used to search character in string { int result = -1; //this is the position of character for ( int counter = 0; counter < data.length(); counter++ ) { if ( data [ counter ] == key ) //check if we got same character { result = counter; //set result counter = data.length(); //out from loop } } return result; } /////////////////////////////////////////////////////////// why I can't see result variable in local windows, or watch windows? It only says "result CXX0017: Error: symbol "result" not found" I just got mad... Anyone can help me how to show the result variable in those windows? Because I need to see the variable value in the other code... Thanks!

    D 1 Reply Last reply
    0
    • R Rockman X7

      Helo all! I just wondering... Why the debugger is quite annoying to me... Firstly, I'm using the VS.NET 2005 Prof, and I test the debugging in C++ code. When I test this code through debug /////////////////////////////////////////////////////////// int searchString( string data, char key ) //this function is used to search character in string { int result = -1; //this is the position of character for ( int counter = 0; counter < data.length(); counter++ ) { if ( data [ counter ] == key ) //check if we got same character { result = counter; //set result counter = data.length(); //out from loop } } return result; } /////////////////////////////////////////////////////////// why I can't see result variable in local windows, or watch windows? It only says "result CXX0017: Error: symbol "result" not found" I just got mad... Anyone can help me how to show the result variable in those windows? Because I need to see the variable value in the other code... Thanks!

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      There may be a problem with the project's .pdb file. Remove it, do a full compile, and try again.


      "The words of God are not like the oak leaf which dies and falls to the earth, but like the pine tree which stays green forever." - Native American Proverb

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups