Tech Off Thread

5 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

System.Guid not showing properly when debugging Visual Basic

Back to Forum: Tech Off
  • User profile image

    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

    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

    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 -">

  • User profile image

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

  • User profile image

    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

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.