本文轉自http://lj6684.iteye.com/blog/537530
因为工作中需要查看byte[]原始编码,eclipse中debug模式下默认查看byte使用10进制显示,上网查找发现配置为16进制(Hex)显示的办法,记录下来备忘
在debug模式试图下,Variables试图窗内 View Menu->Java Preferences...

在打开的对话框中Primative Display Options中选中Display hexadecimal values即可

最后在debug时查看byte值就会显示对应16进制编码内容
