Tech Off Thread

5 posts

System.Guid not showing properly when debugging Visual Basic

Back to Forum: Tech Off
  • User profile image
    JChung2006

    Visual Basic variables of the System.Guid type show up as Guid.Empty instead of their actual values when displayed in the Visual Studio debugger windows (Locals, Watch, etc).

    This bug affects both Visual Studio 2005 and 2008.  System.Guid variables show up fine in C#.

  • User profile image
    stevo_

    Interesting, it replicates here.. I wonder if this behavior has been previously documented.. seems odd it wouldn't of been noticed before (personally I rarely do vb, so, yea)

  • User profile image
    jonm

    I filed a bug about this in the VS2005 beta.  I was told that it was not going to be fixed.  I was also told that I could write my own custom visualizer.  The MS tech even sent me sample code.  Sadly I could never get it to work.  I have come across articles on creating visualizer but have not taken the time to work on it.  Link Below -

    http://msdn2.microsoft.com/en-us/library/ms379596(VS.80).aspx">http://msdn2.microsoft.com/en-us/library/ms379596(VS.80).aspx

  • User profile image
    numedia

    I bet if you call .ToString, you will see the GUID in all its glory.

  • User profile image
    littleguru

    numedia wrote:
    I bet if you call .ToString, you will see the GUID in all its glory.


    Probably... interesting that the VB.NET watch window isn't calling that exact same method when no visualizer is specified... Perplexed

Comments closed

Comments have been closed since this content was published more than 30 days ago, but if you'd like to continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.