本文轉自http://lj6684.iteye.com/blog/537530
因为工作中需要查看byte[]原始编码,eclipse中debug模式下默认查看byte使用10进制显示,上网查找发现配置为16进制(Hex)显示的办法,记录下来备忘
在debug模式试图下,Variables试图窗内 View Menu->Java Preferences...
![](http://dl.iteye.com/upload/attachment/174419/4c47ca4a-7c20-391e-86fc-469ab3008e4e.png)
在打开的对话框中Primative Display Options中选中Display hexadecimal values即可
![](http://dl.iteye.com/upload/attachment/174421/68c856a9-21df-36dc-a99e-03c32c7143b2.png)
最后在debug时查看byte值就会显示对应16进制编码内容
![](http://dl.iteye.com/upload/attachment/174423/172ffe09-517f-37a2-89f2-ec5e58a0366c.png)