How to see hexadecimal string values ​​in VS2008 viewport?

I have a line in the viewport in VS2008 and want to see the hexadecimal representation of each character. If I right-click the hex option, but that does nothing. Does anyone know how to view a string as hexadecimal values?

+5
source share
2 answers

Add your line as an hour, then edit the clock expression and add “.ToCharArray ()” to view it as an array of characters. When you expand the clock, you will see a char code next to each char. Checking the "hexadecimal display" will show you the hexadecimal codes for each character.

+7
source

By default, the visualizer in VS (at least 2005) does not support this. However, it seems not too difficult to reset your own visualizer: http://msdn.microsoft.com/en-us/library/ms379596.aspx (This is an old article from the 2005 beta, but I don’t think the API changed a lot.)

Someone might have written one somewhere, but I haven't seen it yet.

+1
source

All Articles