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
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. VS .net 2005 debugger defect

VS .net 2005 debugger defect

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiodebugging
3 Posts 3 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.
  • K Offline
    K Offline
    ky_rerun
    wrote on last edited by
    #1

    we found a defect do to a typo today check out this code #include using namespace std; class Test { public: string m_sUserID; string m_sUserId; }; int main(int argc, char ** argv) { Test A; A.m_sUserId = "lower"; A.m_sUserID = "Upper"; printf("m_sUserId : %s m_sUserID : %s " , A.m_sUserId.c_str(),A.m_sUserID.c_str()); return 0; } if you use intelisence you will notice that intelisence will only show you two variable associated with class test m_sUserId and m_s if you break the program before it exits and use the hover over feature or the watch window the debugger thinks the members have the same value. There is no need to comment that it is bad form to mix case in variable names it was an accident.


    a programmer traped in a thugs body

    N L 2 Replies Last reply
    0
    • K ky_rerun

      we found a defect do to a typo today check out this code #include using namespace std; class Test { public: string m_sUserID; string m_sUserId; }; int main(int argc, char ** argv) { Test A; A.m_sUserId = "lower"; A.m_sUserID = "Upper"; printf("m_sUserId : %s m_sUserID : %s " , A.m_sUserId.c_str(),A.m_sUserID.c_str()); return 0; } if you use intelisence you will notice that intelisence will only show you two variable associated with class test m_sUserId and m_s if you break the program before it exits and use the hover over feature or the watch window the debugger thinks the members have the same value. There is no need to comment that it is bad form to mix case in variable names it was an accident.


      a programmer traped in a thugs body

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      Yeah - reproduced it. The bug's in the debugger (both in the visualizer tip as well as in the watch window).

      Regards, Nish


      Nish’s thoughts on MFC, C++/CLI and .NET (my blog)
      Currently working on C++/CLI in Action for Manning Publications. Also visit the Ultimate Toolbox blog

      1 Reply Last reply
      0
      • K ky_rerun

        we found a defect do to a typo today check out this code #include using namespace std; class Test { public: string m_sUserID; string m_sUserId; }; int main(int argc, char ** argv) { Test A; A.m_sUserId = "lower"; A.m_sUserID = "Upper"; printf("m_sUserId : %s m_sUserID : %s " , A.m_sUserId.c_str(),A.m_sUserID.c_str()); return 0; } if you use intelisence you will notice that intelisence will only show you two variable associated with class test m_sUserId and m_s if you break the program before it exits and use the hover over feature or the watch window the debugger thinks the members have the same value. There is no need to comment that it is bad form to mix case in variable names it was an accident.


        a programmer traped in a thugs body

        L Offline
        L Offline
        Link2006
        wrote on last edited by
        #3

        ky_rerun wrote:

        if you use intelisence you will notice that intelisence will only show you two variable associated with class test m_sUserId and m_sUserID if you break the program before it exits and use the hover over feature or the watch window the debugger thinks the members have the same value.

        Yup, a defect, I can reproduce it too.

        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