[ACCEPTED]-How can I display a byte array as a String in java's debug detail formatter?-debugging

Accepted answer
Score: 20

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.

Score: 3

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[])


Score: 1

You can't add Detail Formatters for simple 1 Datatypes like byte.

Score: 0


Score: 0

The [B type can be retrieved with byte[].class.


Score: 0

In Idea debug mode, right click the byte[] data you 1 want to view and choose the View Text.

enter image description here

More Related questions