The Watch Window: Hexadecimal Display

Menu:  [Context Menu] -> Hexadecimal Display
Command:  Debug.HexadecimalDisplay
Versions:  2008,2010
Published:  10/14/2010
Code:  vstipTool0110


Sometimes you just need a little hex.  The good news is that all the Variable windows (Locals, Autos, QuickWatch, and Watch) support showing the hexadecimal display for values.  In any variable window just RIGHT CLICK anywhere and choose Hexadecimal Display:




You will now have hex values displayed for the values:




You can reverse this process to turn the hex display off as well.  These values are particularly useful when you are dealing with data that requires any hex input for values.  It is rarely used but very useful when you need it.

Comments (3)

  1. GregM says:

    You can also put a button for this on your toolbar.

    FYI, with the important links and tag cloud on the top above the article, that's the only thing I see on my screen when I load the page.  I have to scroll down to see the article.

  2. Les Ferguson says:

    It doesn't apply to text strings tho.  Is there a quick and easy way to see what hidden characters are in a string value?  I mean, I can't even tell quickly if there is r or n or both in a string.

  3. zainnab says:

    Interesting question.  I found an answer on Stack Overflow that may provide a solution:…/how-do-i-see-the-hex-values-of-a-string-in-a-vs2008-watch-window

    Looks like it would be a good tip to write about at some point in the future.


Skip to main content