VS .net 2005 debugger defect
-
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
-
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
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 -
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
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.