Answered VS 2010 Debugging : Quick watch all values are non readable

  • Tuesday, August 07, 2012 4:12 PM
     
     

    When I try to debug I get the values  as HEX, I tried it on another machine and it showed readable values

    Also I can not see Dataset Data and can not run anything in immediate window.

    Any thoughts whats going on. I got a new machine, initially things were good but after couple of weeks ( i think there was patch installed but not sure) my VS was a waste to debug anything. 

    Machine Windows7

    Visual Studio 2010 Ultimate

    Display Hex is turned off.

All Replies

  • Wednesday, August 08, 2012 10:30 AM
    Moderator
     
     

    Hi kiranj,

    Thank you for posting in the MSDN forum.

    If the same app has different result in the watch window, I doubt that it is related to your VS.

    To narrow down this issue:

    1. If we debug an app, we could add a breakpoint in our code, if you add a breakpoint, please make sure that it is added in the same line. If not, maybe you could add a breakpoint in your app and check whether it is hit.
    2. Maybe you could try to Clean and Rebuild your app, and check it again.
    3. To make sure that it is not related to your VS settings, if you use the default setting in the VS which worked well, maybe you could try to reset another VS settings and check it.
    4.  If you create a simple app, and then use the watch window to check a value, whether it has the same issue?
    5. If all app has the same issue, maybe you could try to repair your VS and check it. It seems that it is the WinForm app, if just this app has this issue, maybe you could share us this app, and we will try to check it in our PC. Or you could post this issue in the WinForm forum.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

  • Wednesday, August 08, 2012 5:23 PM
     
     

    #1 Break point hits fine.

    #2 tried it several times. 

    #3 Reinstalled VS also, but no resolution.

    #4 

    Windows XP. simple app, form with a button and a dataset.

    Windows 7 

    how do I upload the project?

  • Thursday, August 09, 2012 2:22 AM
    Moderator
     
     

    Hi kiranj,

    Glad to receive your reply.

    If seems that you select the "Hexadecimal Display" in your second screen shot like the following screen shot. If you unselect it, what result did you get?

    If it has the same issue, could you share us this project?

    Please attach your Visual Studio project, you can upload it to the sky driver, and then share the download link in your post.

    If there's any concern, please feel free to let me know.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

  • Friday, August 10, 2012 5:42 PM
     
     

    The Hexadecimal Display is not set, as I had shown in the first posting.

    I observed a pattern. if i keep the configuration as "Any CPU" I see all hex values ( including the class names), if i have x86 things are good. This is on the sample application i created with a form, button and a dataset.

     

  • Monday, August 13, 2012 2:23 AM
    Moderator
     
     

    Hi kiranj,

    Glad to receive your reply.

    I observed a pattern. if i keep the configuration as "Any CPU" I see all hex values ( including the class names), if i have x86 things are good.

    So it worked well when you change the Platform target “X86”, am I right? If so, I will make your reply as the answer. If not, you could share us a simple app to us, we try to check it.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

  • Monday, August 13, 2012 1:47 PM
     
     

    So you are saying that in Visual Studio if one sets configuration to "Any CPU" you can see only hex values.

    Unfortunately I can not upload the project because of network security. 

    The project is not that complex. The above image shows all the code


  • Tuesday, August 14, 2012 2:10 AM
    Moderator
     
     Answered

    Hi kiranj,

    Glad to receive your reply.

    Actually I just have the Windows 7 Environment, I try to debug a simple app, and the default result is that the HEX display is unselected. So it will not show the HEX value even if we changed the platform target.

    About your issue, if the HEX Display is unselected in two VS, but the same app have different results. I think we would try to narrow down this issue.

    1. Whether all projects have the same issue? If all projects have the same issue, I doubt that it is related to your VS in the win 7. Maybe you could try to reset your VS settings or repair your VS, and then check it.
    2. If just this specific app has this issue, I doubt that it is related to your app, maybe you could try to Clean and Rebuild your app, and then check the result again.

    Since I didn’t have the Win XP Environment, so to make sure that it is not related to your VS, if you have other Win 7 pc, you could try to debug it. Or you could send us a simple sample created in the Win XP pc, we try to check it in our PC. You could send it to jackzhai at Hotmail dot com.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

  • Thursday, August 16, 2012 8:37 AM
     
     Answered

    This "strange" output in 'Watch Window' reminds me of the result I get for watching a DataSet during debugging a C++/CLI project:

    -  blue 0x00c2e208 { KEY_XMLSCHEMA="XmlSchema" KEY_XMLDIFFGRAM="XmlDiffGram" defaultViewManager=<Nicht definierter Wert> ...} System::Data::DataSet^
    +  System::ComponentModel::MarshalByValueComponent^ 0x00c2e208 { EventDisposed=<Nicht definierter Wert> site=<Nicht definierter Wert> events=<Nicht definierter Wert> } System::ComponentModel::MarshalByValueComponent^ ...

    I have no idea what's going on, but what is the output in 'Call Stack' window for 'Language'? Is it 'C++' or probably 'Unknown'?
    For then , in my opinion, this may point to some misconfiguration of VS Expression Evaluators in registry / wrong CorSym_LanguageType GUID in pdb. But unsure, for I do not know Win7, VS Ultimate. (Especially for X86 seems to be correct).

    No warranty
    With kind regards

  • Friday, October 19, 2012 12:25 PM
     
     
    Check out this thread, it worked for me http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/fc92bce7-30f0-4436-a25c-53b21f873aa6?prof=required
  • Saturday, October 20, 2012 10:27 PM
     
     

    Research paper writing services provides you superior quality content writing on essays, dissertation, speech, assignment, projects, school essay, Academic writing and so on. Research paper writing services is the solution to help you in writing essay.

    http://www.alphawriters.com/researchpaperwritingservices.php