[ACCEPTED]-How can I display a byte array as a String in java's debug detail formatter?-debugging
I don't know how to get eclipse's detail 4 formatter to automagically display byte 3 arrays as Strings, but you can display a 2 particular byte array by adding
new String(byteArray) as a watch 1 expression.
If your question is how would I get a string 3 representation of a byte array of [0,1,2] to 2 be "[0,1,2]", I would suggest 1 you take a look at Arrays.toString(byte)
You can't add Detail Formatters for simple 1 Datatypes like
The [B type can be retrieved with byte.class.
In Idea debug mode, right click the
byte data you 1 want to view and choose the View Text.
More Related questions