如何查看在VS2008监视窗口字符串的十六进制值? [英] How do I see the hex values of a string in a VS2008 watch window?

查看:1296
本文介绍了如何查看在VS2008监视窗口字符串的十六进制值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在VS2008中的一个监视窗口字符串和希望看到每个字符的十六进制表示。如果我右击有一个十六进制的选择,但这似乎并没有做任何事情。任何人都知道如何查看字符串为一系列十六进制值?

I have a string in a watch window in VS2008 and want to see the hex representation of each character. If I right click there's a hexadecimal option but this doesn't appear to do anything. Anybody know how to view the string as a series of hex values?

推荐答案

添加您的字符串作为手表,然后编辑该腕表表达和追加.ToCharArray()将其视为字符数组。当你扩大你的手表,你会看到字符代码旁边每个字符。检查十六进制显示将告诉你的十六进制代码的每个字符。

Add your string as a watch, then edit the watch expression and append ".ToCharArray()" to view it as an array of chars. When you expand your watch you will see char code next to each individual char. Checking "Hexadecimal display" will show you hex codes for each character.

这篇关于如何查看在VS2008监视窗口字符串的十六进制值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆