This is exactly the same question as " How do I display a byte array as an array of hex bytes or unsigned decimal numbers in the Eclipse Java debugger? ",
except it applies to char[]
rather than byte[]
:
So, how would I view a char
array in the Eclipse Java debugger as an array of hex bytes (2 digits each) or unsigned decimal numbers?
More generally, (see Tips and Tricks for Debugging in Eclipse ), you can edit and make your own formatter for any kind of value:
(In Eclipse preferences under Java->Debug->Detail Formatters
).
That will transform, for instance, this:
into this:
You could then use this technique for your char[], provided you did set first the "as the label for all variables" option
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.